Time.txt
RFID sample.txt
here have sample that i took from my senior.. the project quite similiar with my project. while, the time posted from me is what i took from website. hope that can help you.
Time.txt
RFID sample.txt
here have sample that i took from my senior.. the project quite similiar with my project. while, the time posted from me is what i took from website. hope that can help you.
Now I am confused. I thought you were the one asking for help.
Start off by getting the timer code working on your chip. Then work on having an event happen at a certain time. That event for testing would be a LED blink in a certain sequence. That is what you want , correct?
But if this is your first time, write some code to make a LED blink to make sure everything is running, then work on using the display.
Dave
Always wear safety glasses while programming.
sorry i make you confused.
the purpose i do is RFID medicine teller. since i posted the step in previous. that is what i want.
the sample of RFID that i posted is only a guidance. i want to let you more easily to understood what i want. because that sample is also a RFID. i try to modify it on medicine teller.
the problem is i dunno how to write the program code as well. please help me
Lets start off getting familiar with the chip and and make the LED blink first.
In the PBP directory you will find *.inc files. Comment out the config lines like it is shown here.
http://www.picbasic.co.uk/forum/show...75&postcount=5
We will be setting the configuration in code space. The above thread is talking about how this is done.
I will also assume and /or suggest you have MPLAB installed and tell MCS to use MPASM.
And I will assume and suggest you use a resonator for the OSC.
All the above said, the begining of your code will look like this:
Then we will turn off the ADC and ComparatorsCode:DEFINE OSC 20 ' If the resonator is 4MHz then replace 20 with 4 '##The line below is the config line '##The OSC is HS for resonators,WatchDogTimer is OFF,LowVoltagePrograming is OFF '##CodeProtection is OFF and BrownOut is OFF @ __config _HS_OSC & _WDT_OFF & _LVP_OFF & _CP_OFF &_BODEN_OFF
http://www.picbasic.co.uk/forum/showthread.php?t=561
Then connect an LED to PORTC.7 with a 470 resistor.Code:ADCON1=7 CMCON=7
And make it turn on for .25 seconds and off for .25 seconds.
See if you can get that working and the we will go after the LCD display.Code:LOOP: HIGH PORTC.7 PAUSE 250 LOW PORTC.7 PAUSE 250 GOTO LOOP
Dave
Always wear safety glasses while programming.
erm... easy way..
i want setting the time 12:10:00 am/pm on my LCD display
how to program it?? as i know is:
if hour = 12 and minute = 10 second = 00 then run
run:
reqout#(code) and so on...
can you help me correct it? whereby that i have wrong with the program.
My design.txt
the error is start from mainloop.
Bookmarks