E eehero New Member Oct 17, 2006 #1 Hi all, i am going to use timer 0 of At89s52 as an event counter, after counting i have to read the timer value using the following code: loop: mov a,th0 mov r6,tl0 cjne a,th0,loop mov r7,a finally i get 16 bit data in r6, r7. how i can display the counting value in r6, r7 on a 2x16 LCD
Hi all, i am going to use timer 0 of At89s52 as an event counter, after counting i have to read the timer value using the following code: loop: mov a,th0 mov r6,tl0 cjne a,th0,loop mov r7,a finally i get 16 bit data in r6, r7. how i can display the counting value in r6, r7 on a 2x16 LCD
Papabravo Well-Known Member Oct 17, 2006 #2 Do you want the display to be in the binary, octal, decimal, or hexadecimal number base. Second question is can you tell the display to show ASCII characters or is this a graphics display where we have to figure out the blanking codes?
Do you want the display to be in the binary, octal, decimal, or hexadecimal number base. Second question is can you tell the display to show ASCII characters or is this a graphics display where we have to figure out the blanking codes?
M manish12 Member Oct 18, 2006 #3 step1: convert 16 bit in to 5 decimal digits. step2: store the 5 decimal digits in to 5 regi. step3: Add each regi. value with 30h. step4: And send it to lcd.
step1: convert 16 bit in to 5 decimal digits. step2: store the 5 decimal digits in to 5 regi. step3: Add each regi. value with 30h. step4: And send it to lcd.
sci-3d Member Oct 18, 2006 #4 The important thing, before this, you should already have done the LCD interfacing. Here is example: https://mcu-programming.blogspot.com/2006/09/lcd-interfacing.html
The important thing, before this, you should already have done the LCD interfacing. Here is example: https://mcu-programming.blogspot.com/2006/09/lcd-interfacing.html