1818281+1818282 Microchip Technology, 1818281+1818282 Datasheet - Page 19

no-image

1818281+1818282

Manufacturer Part Number
1818281+1818282
Description
EDF / AMICUS18 + SHIELD, BUNDLE
Manufacturer
Microchip Technology
Type
Development Boardr

Specifications of 1818281+1818282

Kit Contents
Board
Svhc
No SVHC (15-Dec-2010)
Kit Features
Nine 10-bit ADC Inputs, Two 10-bit PWM Outputs, Two Comparators
Mcu Supported Families
PIC18F25K20
Silicon Manufacturer
Microchip
Core Architecture
PIC
Core Sub-architecture
PIC18
Silicon Core Number
PIC18F
Silicon Family Name
PIC18FxxKxx
A more advanced program to do the same thing is shown below:
' Illuminate 8 LEDs attached to PortB in sequence
' Using a more advanced method
' Make sure the Amicus18 board’s jumper Q3 is set to the RB1 position
'
There are many variations of the programs that can be used with the eight LED circuit. The program
below sequences the LED’s up then down the line.
' Illuminate 8 LEDs attached to PortB in sequence
' Make sure the Amicus18 board’s jumper Q3 is set to the RB1 position
'
Crownhill AssociatesLimited 2009 - All Rights Reserved
Dim bPortShadow As Byte
Dim bLoop As Byte
Low
While 1 = 1
Wend
Dim bPortShadow As Byte
Dim bLoop As Byte
bPortShadow = 1
Low
PORTB
DelayMS 300
While 1 = 1
Wend
bPortShadow = 1
PORTB
DelayMS 300
For bLoop = 0 To 6
Next
For bLoop = 0 To 6
Next
For bLoop = 6 To 0 Step -1
Next
PORTB
PORTB
bPortShadow = bPortShadow << 1
PORTB
DelayMS 300
bPortShadow = bPortShadow << 1
PORTB
DelayMS 300
bPortShadow = bPortShadow >> 1
PORTB
DelayMS 300
= bPortShadow
= bPortShadow
= bPortShadow
= bPortShadow
= bPortShadow
Amicus18 Companion Shield
Version 1.0
' Make PortB output low (Extinguish all the LEDs)
' Transfer the shadow variable to PortB
' Wait a pre-determined amount of time
' Create a variable to hold the state of PortB
' Create a variable for the bit counting loop
' Make PortB output low (Extinguish all the LEDs)
' Create a variable to hold the state of PortB
' Create a variable for the bit counting loop
' Set the initial state of PortB
' Create an infinite loop
' Set the initial state of PortB
' Transfer the shadow variable to PortB
' Wait a pre-determined amount of time
' Create a loop from 0 to 6
' Transfer the shadow variable to PortB
' Wait a pre-determined amount of time
' Close the loop
' Do it forever
' Shift a bit left one position
' Create an infinite loop
' Create a loop from 0 to 6
' Shift a bit left one position
' Transfer the shadow variable to PortB
' Wait a pre-determined amount of time
' Close the loop
' Create a loop from 6 to 0
' Shift a bit right one position
' Transfer the shadow variable to PortB
' Wait a pre-determined amount of time
' Close the loop
' Do it forever
18
06-10-2009

Related parts for 1818281+1818282