BL4S200 User’s Manual 4
3.8 Other Hardware...................................................................................................................................47
3.8.1 Clock Doubler .............................................................................................................................47
3.8.2 Spectrum Spreader ......................................................................................................................48
3.9 Memory...............................................................................................................................................49
3.9.1 SRAM .........................................................................................................................................49
3.9.2 Flash Memory .............................................................................................................................49
3.9.3 VBAT RAM Memory.................................................................................................................49
3.9.4 microSD™ Cards ........................................................................................................................49
Chapter 4. Software 51
4.1 Running Dynamic C ...........................................................................................................................51
4.1.1 Upgrading Dynamic C ................................................................................................................53
4.1.2 Add-On Modules.........................................................................................................................53
4.2 Sample Programs ................................................................................................................................54
4.2.1 Digital I/O ...................................................................................................................................55
4.2.2 Serial Communication.................................................................................................................60
4.2.3 A/D Converter Inputs..................................................................................................................62
4.2.4 D/A Converter Outputs ...............................................................................................................64
4.2.5 Use of microSD™ Cards with BL4S200 Model.........................................................................66
4.2.6 Real-Time Clock .........................................................................................................................66
4.2.7 TCP/IP Sample Programs ...........................................................................................................66
4.3 BL4S200 Libraries..............................................................................................................................67
4.4 BL4S200 Function Calls.....................................................................................................................68
4.4.1 Board Initialization .....................................................................................................................68
4.4.2 Digital I/O ...................................................................................................................................69
4.4.3 High-Current Outputs .................................................................................................................92
4.4.4 Rabbit RIO Interrupt Handlers..................................................................................................104
4.4.5 Serial Communication...............................................................................................................108
4.4.6 A/D Converter Inputs................................................................................................................110
4.4.7 D/A Converter Outputs .............................................................................................................123
4.4.8 SRAM Use ................................................................................................................................131
Chapter 5. Using the Ethernet TCP/IP Features 132
5.1 TCP/IP Connections .........................................................................................................................132
5.2 TCP/IP Sample Programs .................................................................................................................134
5.2.1 How to Set IP Addresses in the Sample Programs ...................................................................134
5.2.2 How to Set Up your Computer for Direct Connect ..................................................................135
5.2.3 Run the
PINGME.C Demo ....................................................................................................136
5.2.4 Running More Demo Programs With a Direct Connection......................................................137
5.3 Where Do I Go From Here? .............................................................................................................137
Chapter 6. Using the Wi-Fi Features 138
6.1 Introduction to Wi-Fi ........................................................................................................................138
6.1.1 Infrastructure Mode...................................................................................................................138
6.1.2 Ad-Hoc Mode ...........................................................................................................................139
6.1.3 Additional Information .............................................................................................................139
6.2 Running Wi-Fi Sample Programs.....................................................................................................140
6.2.1 Wi-Fi Setup...............................................................................................................................141
6.2.2 What Else You Will Need.........................................................................................................142
6.2.3 Configuration Information ........................................................................................................143
6.2.4 Wi-Fi Sample Programs............................................................................................................146
6.2.5 RCM5400W Sample Programs.................................................................................................151
6.3 Dynamic C Wi-Fi Configurations.....................................................................................................154
6.3.1 Configuring TCP/IP at Compile Time ......................................................................................154
6.3.2 Configuring TCP/IP at Run Time .............................................................................................158
6.3.3 Other Key Function Calls .........................................................................................................158
6.4 Where Do I Go From Here? .............................................................................................................159