Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

uint8_t?

Status
Not open for further replies.
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.

Latest threads

New Articles From Microcontroller Tips

Back
Top