??? 05/04/06 03:12 Read: times |
#115517 - BCD magnitude comparisons ! |
I am using a small board with AT89c4051 MCU and a DS1307 RTC (I2C) chip. The RTC stores date in BCD format. The MCU takes input a BCD date from the PC by serial port, and has to compare this with the actual date in DS1307.
If the input date is found to be lesser than the one in the RTC, the MCU must return an OK response to teh PC. Otherwise, it must return a FALSE response to the PC. My question is, how do i compare magnitude of input date in BCD with teh actual date maintained by RTC, also in BCD. Since testing with CJNE and Carry flag for Less than / greater than will only work for binary numbers, not BCD. Please advise. Thank you. |
Topic | Author | Date |
BCD magnitude comparisons ! | 01/01/70 00:00 | |
This or that | 01/01/70 00:00 | |
No conversion necessary! | 01/01/70 00:00 | |
Something like this | 01/01/70 00:00 | |
RE: Something like this![]() | 01/01/70 00:00 | |
Because | 01/01/70 00:00 | |
Julian date? | 01/01/70 00:00 |