DM163045 Microchip Technology, DM163045 Datasheet - Page 23

no-image

DM163045

Manufacturer Part Number
DM163045
Description
PICDEM Lab Development Kit (with PICkit 3) General Purpose
Manufacturer
Microchip Technology
Series
PICDEM™r
Type
MCUr
Datasheet

Specifications of DM163045

Contents
Board, PIC kit 3
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
For Use With/related Products
PIC Micro® MCU

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM163045
Manufacturer:
MICROCHIP
Quantity:
12 000
© 2009 Microchip Technology Inc.
Special care should be observed when connecting the LED jumper wires to the
expansion headers surrounding the PIC16F690, as the PORTC pins are not in
sequential order. The 470Ω resistors are used to limit the current across the LEDs to
manufacturer specifications. Furthermore, the PIC16F690 Data Sheet electrical
specifications (see Section 17.0) specify that each port pin should not source/sink more
than 25 mA. The maximum output current sourced/sunk by all port pins combined
should not exceed 200 mA. The 470Ω resistors keep all source current well within
these specifications.
3.3.4
3.3.4.1
To configure the peripherals used in this lab, the following registers are used:
1. PORTC Register: PORTC (Register 4-11 in Section 4 of the PIC16F690 Data
2. PORTC Tri-State Register: TRISC (Register 4-12 in Section 4 of the PIC16F690
3. Analog Select Register High and Analog Select Register Low: ANSELH and
3.3.4.2
This first lab demonstrates how to output data from the PORTC peripheral on the
PIC16F690 to its associated pins. LEDs connected to PORTC pins will light when the
associated pin is driven high (approx. V
(approx. V
need to be configured as output using the TRISC register. Also, PORTC pins RC0,
RC1, RC2, RC3, RC6 and RC7 are configurable for both analog and digital signals. On
start-up, any analog/digital functional pin is defaulted to analog. Therefore, this
application will require that these pins be configured as digital by configuring the
associated bits in the ANSEL and ANSELH analog select registers.
FIGURE 3-2:
- 8-bit bidirectional port.
- Configures corresponding bits in PORTC as either input or output.
- Configure associated pins for analog or digital input signals.
Sheet).
Data Sheet).
ANSEL (Registers 4-4 and 4-3 in Section 4 of the PIC16F690 Data Sheet).
SS
Lab 1: Light LEDs
NEW REGISTERS USED IN THIS LAB
OVERVIEW
). The port peripherals will all default to input on start-up and will therefore
Loop Forever
General Purpose Input/Output Labs
MAIN() SOFTWARE CONTROL LOOP FLOWCHART FOR
LAB 1
Do_Outputs()
Initialize()
main()
DD
) or turn the LED OFF when driven low
DS41369A-page 19

Related parts for DM163045