300 likes | 593 Views
Welcome to: Fun with EASY-PIC 05. DSPTC - PIC Development. ---- Fun With Easy-Pic ---- Objective: Let PIC Project Make Easy . 2 Days course: 1 st Day 1) Introduction 2) Hardware 3) Software
E N D
Welcome to: Fun with EASY-PIC 05 DSPTC - PIC Development
---- Fun With Easy-Pic ---- Objective: Let PIC Project Make Easy . 2 Days course: 1st Day 1) Introduction 2) Hardware 3) Software a) FPP Installation & Run b) C2C installation & Run 4) Write your first Hello.c
2nd Day: • Objective: Build your Easy-PIC Project . • 2 to 3 person in one team. • Material Given: • 1) LED: Red, Green, Yellow. • 2) Pizo sounder • 3) Wire • 4) Card Board • Project recommendation: • Xmas Tree • advertisement • Name Tag • scanner display • Music box • Etc.
Power Point for Easy-Pic: 1) Easy-Pic introduction 2) Easy-Pic Fabrication 3) FPP 4) SourceBoot
Introduction of Pic
What is PIC stand for ? P eripheral I nterface C ontroller
Robot Washing Machine Micro wave Oven Where is PIC ?
How CPU & PIC relayed ? • PIC is an one-chip microprocessor with • peripheral interface. • When comparing to the human being, the • brain is the main CPU and the PIC shares the • part of which is equivalent to the autonomic • nervous. Make control easy
What are PICs look like ? PIC's are low-cost, easy to use microcontrollers from Microchip. The 12F, 16F and 18F series, both having flash memory and the ability to be programmed "in-circuit", allows designs to be tested during the creation of the program. The examples are: 16F877, 16F876, 16F628, 16F84, 18F452, 12F675 and 12F629 12Fxx (8pins) 16Fxx (18pins) 18Fxx (20pins)
Auto control Data logging Etc What can PIC do ? Games Communication Timer
Eg. 16F84A Easy-Pic Use for 1st Target Easy to handle Free Software Many examples On the Web. In Circuit Serial Programming cheap
16F84A Vcc: 2 to 6V I/O Source And sink 25mA
RA0 To RA4RA is a bidirectional port. That is, it can be configured as an input or an output. The number following RA is the bit number (0 to 4). So, we have one 5-bit directional port where each bit can be configured as Input or Output. RB0 To RB7RB is a second bidirectional port. It behaves in exactly the same way as RA, except there are 8 - bits involved. VSS And VDDThese are the power supply pins. VDD is the positive supply, and VSS is the negative supply, or 0V. The maximum supply voltage that you can use is 6V, and the minimum is 2V OSC1/CLK IN And OSC2/CLKOUTThese pins is where we connect an external clock, so that the microcontroller has some kind of timing. MCLRThis pin is used to erase the memory locations inside the PIC (i.e. when we want to re-program it). In normal use it is connected to the positive supply rail. INTThis is an input pin which can be monitored. If the pin goes high, we can cause the program to restart, stop or any other single function we desire. We won't be using this one much. T0CK1This is another clock input, which operates an internal timer. It operates in isolation to the main clock. Again, we won't be using this one much either. Special features Watchdog timer, power-up timer, sleep mode.
Introduction of the Easy Pic
Mini ICSP Training / PD Kit Use in circuit serial programming. Use Microchip PIC IC 16F84A. Test Board ready. On board 5v power supply ready. Pins and header ready.
In circuit programmer Test board Target board Consists of :
Robot Easy-Pic Easy-Pic with Test board Easy-Pic with breadboard Easy-Pic with keyboard Easy-Pic with display board
SCHOOL SCIENCE PROJECT
Software: Serial Cable from Com port 1.Source boost ( C2C) In circuit serial programmer 2.FPP ( Hex ) Test board + _ DC 12-18V input 16F84 Target board
Comparison Conventional IC Programmer In circuit serial programmer
Pins and header ready for bread-boarding. On board 5v power supply ready.
Target board 16F84A • IO Ports: • RA : 5 i/o • RB : 8 i/o In Circuit Serial Programming inputs. Pushing switch for Prog / Run
All are active Low Test Board Leds in series with 7 segments. 4 Tack Switches. 1 pizo sounder.
The End Note : All interfaces are active low. RB 7 to 0 connected to Led A to * RA 0 connected to Pizo sounder RA 1 to 4 connected to S1 to S4
16F88 4K memory 10 bit x 7 ADC PWN (CCP) 16F88 USART 2 x 8 bit timer Etc….