![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| I am trying to write a program for a project which includes a PIC connected to a DS1307 real time clock and 24LC64 serial EEPROM but I can't find anything on writing a Basic program for these. Both will be using I2C and will connected seperately to simplify the program plus I have enough free ports for this. If anyone knows any tutorials or could give me a simple program I would be very greatful | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| Thanks for the reply, I've worked it out now I have another question though. I am reading the value for the month from the real time clock but its as a number such as 0 - jan, 1 - feb, 2 - mar etc, and wanted to write some code so I could display the month name rather than the number. Could I do this with a lookup table or would I have to do something like if month = 0 then monthname = "jan" if month = 2 then monthname = "feb" Any help is much appreciated | |
| |
| | (permalink) | |
| Quote:
Does your compiler allow Case/End Case statements, you could use that, if not your If/Then solution looks favourite. | ||
| |