Appendix; Programming The Canbus; Programming The Gpio - Dell Embedded Box PC 5000 Technical Manualbook

Hide thumbs Also See for Embedded Box PC 5000:
Table of Contents

Advertisement

Appendix

Programming the CANBus

The CANBus appears as a CDC (Common Device Class)/USB device in supported operating systems.
For CANBus programming of user mode applications, see the API documentation available at
design-centers/can.

Programming the GPIO

Program the GPIO port using a hardware programming utility.
1.
Enter the Extended Function Mode of your utility by writing 87h twice to IO port 2Eh.
2.
Configure pin GPO0 to GPO7.
a.
Select Logical Device 8.
Write 07h at IO port 2Eh.
Write 08h at IO port 2Fh.
b.
Configure configuration Register CR E1.
Write E1h at IO port 2Eh.
Write NNh at IO port 2Fh.
GPO7
GPO6
Bit 7
Bit 6
Example: If you want to set GPO0 to High and GPO1 to 7 to Low, need to set NN to 01h
NOTE: The default values are all low
3.
Configure pin GPI0 to GPI7.
a.
Select Logical Device 7.
Write 07h at IO port 2Eh.
Write 07h at IO port 2Fh.
b.
Configure configuration Register CR F5.
Write F5h at IO port 2Eh.
Read NNh at IO port 2Fh.
GPI7
GPI6
Bit 7
Bit 6
4.
Exit the Extended Function Mode by writing 0xAAh at IO port 2Eh.
GPO5
GPO4
Bit 5
Bit 4
GPI5
GPI4
Bit 5
Bit 4
GPO3
GPO2
Bit 3
Bit 2
GPI3
GPI2
Bit 3
Bit 2
6
www.microchip.com/
GPO1
GPO0
Bit 1
Bit 0
GPI1
GPI0
Bit 1
Bit 0
53

Advertisement

Table of Contents
loading

Table of Contents