uint8_t?

Status
Not open for further replies.

t.man

New Member
what's a uint8_t in c programming for uC?

any clarification will be appreciated!.
 
I would guess it's an unsigned 8 bit integer. Can you post some example code?

mike.
 
Pommie said:
I would guess it's an unsigned 8 bit integer. Can you post some example code?

mike.
here we go!...
Code:
void sendMynible(uin8_t nible)
 {
    .
    .
    .
    PORTB = (nible & 0xF0)|(PORTB & 0x0F);
    .
    .
    .
 }
 
Yes, an unsigned 8 bit integer. I'll guess that is part of some LCD code. Which compiler is it?

Mike.
 
i'm using avr-gcc compiler!

i want to write a code for my LCD to display real time information...i'm considering using a timer1 interrupt to update my display but i have no clue how to achieve that!. any suggestions?
 
First you have to understand how the timer works. For this you need to read the datasheet for the part you are using. Have you done that?

Then you have to find out how interrupts are configured and enabled. For this you need to read the datasheet for the part you are using. Have you done that?

Then you need to figure out what the processor does when an interrupt condition is presnet. For this you need to read the datasheet for the part you are using. Have you done that?

Then you need to figure out what you want to do once the processor gets you to a function that will handle the interrupt. For this you need to read the datasheet for the part you are using. Have you done that?

After you have read and reread the datasheet multiple times you should probably visit Nigel's tutotials on the subject.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…