![]() ![]() Timer0 is used to count the input signal at pin RA4. Timer1 uses an external crystal resonator (watch crystal) with 32768Hz frequency for setting the 1 second time base. The microcontroller uses its internal 4MHz oscillator for the CPU clock. The schematic is fairly simple and straightforward and uses a PIC16F628A microcontroller for measuring frequency and a high speed comparator for signal amplification and conditioning. : uploaded new Software that writes to Prog memory and loads the Configuration Word, and uploaded the Arduino Firmware, which supports LVP (Low Voltage Programming) by sending ‘S’ just after RESET.This project shows how to build a very simple yet very useful tool that every DIY enthusiast should have in his lab: a 100MHz+ frequency counter. ![]() Supported PICs : (Your PIC is not listed here? Don’t hesitate to post a comment here so that I can add it!)ĭon’t hesitate to tell me if it works with other PICs. This only reads and writes to program memory on PIC, improve it to access DATA memory(=EEPROM).WXXXXXXXXXXXXXX : writes word to location pointed by PC (program counter)Įvery command returns character D if success To program use your COM port, here are the commands : Just after RESET send s to start with HVP (High Voltage Programming) or S to start with Low Voltage Programming Void LoadDataCommandForDataMemory(char valeur) ![]() Void LoadDataCommandForProgramMemory(char valeur)Ĭhar Erase = ![]() Serial.println("Send s to start (please put Vpp first)") #define PGM 10 //HIGH/LOW voltage select mode This program is distibuted "AS IS", I offer no garantee. You can change the resistor value between 330 and more.Īlways RESET Arduino before putting 12V (I don’t know if we need to, but that’s just a safe practice) It works with PIC 16F628 but should work with most pic16F if you can try at home leave a message so that I can list the working PICs here! Here is my first version of my PIC programmer : program your PIC from USB! Cheap and easy!įeel free to do what you want with this project, modify it, upgrade it publish it,… but just tell me what you’ve done so that I can share it with everybody ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |