Hello Friends,
I am Johnny,
I am using mplab, hi-tech PICC and pic16f877a microcontroller.
Suppose in my C Code I have a variable x, I assigned it some value say 5,
now I want to output this value on PORTB, for that I thought of 2 methods:
Thank You,
I am Johnny,
I am using mplab, hi-tech PICC and pic16f877a microcontroller.
Suppose in my C Code I have a variable x, I assigned it some value say 5,
now I want to output this value on PORTB, for that I thought of 2 methods:
- C Code: code for dec to bcd
- ASM Code: assembly code and then use hex values and simply equate portb to x(I have some experience with 8051 asm programming).
Thank You,