110 likes | 215 Views
NET+OS 6.1 Training. GPIO APIs. NET+OS 6.1 Signal Multiplexing. System tradeoffs affecting pin count at design-time. NS9750 unit cost reduced by conserving pins. Applications select their function multiplexing based on system requirements. See HW Ref Manual.
E N D
NET+OS 6.1 Signal Multiplexing • System tradeoffs affecting pin count at design-time. • NS9750 unit cost reduced by conserving pins. • Applications select their function multiplexing based on system requirements. See HW Ref Manual. • NS9750 multiplexing includes: • Serial • IEEE-1284 • LCD • Timers, DMA, Interrupts • GPIO
NET+OS Legacy Support • Signal Multiplexing not addressed in legacy product. • Drivers would configure as needed. • Last come / Last served • It’s always good to be the last thread spawned.
NET+OS 6.1 Compile Time API • One header file contains all the multiplexing settings. • Multiplexing errors are caught at compile time. • System verification tool. • Located in Platform directory: gpio.h • Either assign a group or leave it internal. • Pins with all functions internal are GPIO enabled
Multiplexing Serial • Four serial ports A through D, map to “/com/0” through “/com/3” • 2, 4, 6, 8 wire applications • SPI
Multiplexing LCD • The LCD can be configured: • 4, 8, 18, 24 bit • Dual 4 or 8 bit applications • LCD Line End signal can be routed separate. • Not required in all LCD applications.
Multiplexing IEEE-1284 • IEEE-1284 • Some signals available on primary or alternate pins
Other Multiplexing • USB Over-current • USB Power Relay • Ethernet CAM • 2 DMA channels • 16 Timers • 4 IRQ’s
GPIO Pins • All unassigned pins are available for GPIO • Defaults to inputs • Can be set to output, initial value 0 or 1. • Two convenience functions • MCgetGPIOpin • MCsetGPIOpin
Review Current gpio.h • Easy and Fast BSP customization. • Remove multiplexing dependencies from the drivers.