Pic18 start-project for beginners. This is an easy and cheap project.
The project has four parts: an LCD, a programmer, a keyboard and the main PIC18 board.
Progamming is done with Microchip's MCC18 C-compiler and Microchip's MPLAB IDE. This is a great package for Pic18 programming. It could be found at the Microchip.com site. To program the Pic18 processor the first time with a bootloader i use DL4YHF's PIC Programmer or Picpgm. Those is programs that transfers a Pic-progran through the ICSP interface to the processor. It could be found at: http://people.freenet.de/dl4yhf/winpicpr.html or http://www.members.aon.at/electronics/pic/picpgm/index.html . When the bootloader, "Fboot.hex", is in place in the pic18 you use the Pic-taker program. Look at the download section. The Pic-talker comunicates through the serial interface (RS232). It tansfers your program to the processor and could display messages from the processor. Pic-taker helps you to find problems in your program.
The programmer It has two inteface: ICSP with 5 pins and Serial with 4 pins.
When selecting ICSP there is two options, normal (VCC before Vpgm) and "Vpgm before VCC". The associated jumper is at the cads edge, close to the ICSP interface.
The keyboard There is 6 buttons, one connected to a digital input and the other is connected to a analogue input
The PIC18 board The mainboard has a PIC18F4520 @32Mhz, 8Mhz crystal and connectors for:
There is also an IC-socket for SPI-EEPROM The SPI-system is NOT complete! You must connect them yourselves with pinns from PortA,PortB, PortC, PortD and PortE. 3-pins from PortC is not connected, so you can connect then to whatever you like, SPI or
First project
|
The whole system. LCD, programmer,
There also a reset button, to make it easier to restart. It is connected to the ICSP-interface. |
|
Mainboard With a PIC18F4520 running at 32MHz |
|
The programmer |
|
Keyboard |
|
The PIC-talker This progran comunicates with the PIC though the serial (rs232) connection |
|
Programmer schematic |
|
Programmer Components positions
Jumper positions and function.
Connectors pin-description. |
|
Keyboard schematic |
|
Keyboard components possitions |
|
Mainboard schematic |
|
Mainboard components possitions |
|
The SPI cable with 3-connectors. That makes it possible to connect two SPI devices. If you like, it easy to get a 4 or 5 connectors cable. |
|
Download Here is the layouts and PCBs for the boards, the Pic-boottalker and a sample start project. |
Programmer: rs232+jdm_brd.pdf , rs232+jdm_sch.pdf Keyboard: keyb_brd.pdf , keyb_sch.pdf Mainboard: Pic_Start_2_brd.pdf , Pic_Start_2_sch.pdf Pic-talker: BootTalker.zip First project: Pic18_start.zip |
Links This is more advanced projects. |
and PicScope: PIC_scope.htm |