AMICUS18-COMPANION-SHIELD AMICUS, AMICUS18-COMPANION-SHIELD Datasheet - Page 15

Amicus18 Companion Shield

AMICUS18-COMPANION-SHIELD

Manufacturer Part Number
AMICUS18-COMPANION-SHIELD
Description
Amicus18 Companion Shield
Manufacturer
AMICUS

Specifications of AMICUS18-COMPANION-SHIELD

Silicon Manufacturer
Microchip
Core Architecture
PIC
Core Sub-architecture
PIC18
Features
USB Interface, In Circuit Serial Programming Interface
Kit Contents
Board
Silicon Family Name
PIC
Silicon Core Number
PIC18F25K20
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
PIC18F25K20 Microcontroller
The two extra LEDs are connected to RB0 and RB1 of PortB, as the circuit shows below:
A suitable program for the 4 LED sequencer is shown below:
' Illuminate 4 LEDs attached to PortB in sequence
' Make sure the Amicus18 board’s jumper Q3 is set to the RB1 position
'
The above program will illuminate each LED in turn.
Crownhill AssociatesLimited 2009 - All Rights Reserved
Low
While 1 = 1
Wend
PORTB
DelayMS 300
PORTB
DelayMS 300
PORTB
DelayMS 300
PORTB
DelayMS 300
PORTB
= %00000001
= %00000010
= %00000100
= %00001000
Amicus18 Companion Shield
Version 1.0
' Make PortB output low (Extinguish all four LEDs)
' Create an infinite loop
' Illuminate the first LED
' Delay a pre-determined amount of time
' Illuminate the second LED
' Delay a pre-determined amount of time
' Illuminate the third LED
' Delay a pre-determined amount of time
' Illuminate the fourth LED
' Delay a pre-determined amount of time
' Do it forever
PortB
Power
GND
RB7
RB6
RB5
RB4
RB3
RB2
RB1
RB0
Cathode
Anode
47
LED
Ω
14
47
LED
Ω
47
LED
Ω
47
LED
Ω
06-10-2009

Related parts for AMICUS18-COMPANION-SHIELD