EasyManua.ls Logo

Dell Embedded Box PC 5000 - Appendix; Programming the Canbus; Programming the GPIO

Dell Embedded Box PC 5000
54 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6
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 www.microchip.com/
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 GPO5 GPO4 GPO3 GPO2 GPO1 GPO0
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
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 GPI5 GPI4 GPI3 GPI2 GPI1 GPI0
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
4.
Exit the Extended Function Mode by writing 0xAAh at IO port 2Eh.
53

Table of Contents

Other manuals for Dell Embedded Box PC 5000