Sie sind auf Seite 1von 9

Tự học Vi Điều Khiển

Tham khảo :
MustRead:

>> DS39631  “PIC18F2420/2520/4420/4520 Data Sheet”

>> DS33023  “PIC® Mid­Range MCU Family Reference Manual”

>> DS39500   “PIC® 18C MCU Family Reference Manual” 

>> DS51331 “MPLAB® ICD 2 User’s Guide” 

>> DS51025  “MPLAB® IDE, Simulator, Editor User’s Guide”

>> DS33014  “MPASM™ Assembler, MPLINK™ Object Linker and MPLIB™ Object Librarian

Datasheet

+5V Regulator LM2940CS

Serial Max232

EEPROM 24LC256 (32kx8)

Microchip TC74 thermal sensor U519

REFERENCE DOCUMENTS

datasheet

MPLAB IDE

MPLAB ICD2

Linh kiện tạo xung :


Resonator
Three legged Ceramic Resonators from ESC Inc. can be used in place of the Crystals and
Capacitors that all SimmSticks have been designed for. Be warned that these resonators aren't as
accurate as crystals and suffer from temperature shifts. Typical values for these types of resonators are:
at -20C to +80C +/- 0.3% across temperature. +/- 0.5% initial tolerance, and +/- 0.3% for aging.

ZTT-4.00MT 4Mhz 3 lead Resonator


ZTT-6.00MT 6Mhz 3 lead Resonator
ZTT-8.00MT 8Mhz 3 lead Resonator
ZTT-10.00MT 10Mhz 3 lead Resonator
ZTT-11.0592.00MT 11.0592Mhz 3 lead Res.
ZTT-12.00MT 12Mhz 3 lead Resonator
ZTT-16.00MX 16Mhz 3 lead Resonator
ZTT-20.00MX 20Mhz 3 lead Resonator
Oscilator

Interface Protocol

PICDEM2Plus
KNOWLEDGE
What is Switch Bounce?
The left-hand image below shows a simple push switch with a pull-up resistor. The right hand image
shows the trace at the output terminal, Vout, when the switch is pressed. As can be seen, pressing the
switch does not provide a clean edge. If this signal was used as an input to a digital counter, for example,
you'd get multiple counts rather than the expected single count.
Note that the same can also occur on the release fo a switch.
The problem is that the contacts within the switch don't make contact cleanly, but actually slightly
'bounce'. The bounce is quite slow, so you can recreate the trace, and the problem quite easily.

Simple switch pull-up circuit


Switch bounce produced on switch press
In the switch waveform the bouncing lasts for about 150us.
Source: http://www.labbookpages.co.uk/electronics/debounce.html

READ “MPLAB® IDE, Simulator, Editor User’s Guide”
Lập trình

Das könnte Ihnen auch gefallen