UG_12xxF_016 73S12xxF Software User Guide
R ev. 1.50 3
Table of Contents
1 Introduction ................................................................................................................................... 5
1.1 Acronyms ................................................................................................................................ 5
1.2 U se of t his D ocument............................................................................................................... 6
1.3 Statement of Compliance ......................................................................................................... 6
2 Design Guide ................................................................................................................................. 7
2.1 D evelopment E nvironment ...................................................................................................... 7
2.1.1 Hardware Requi r ements .............................................................................................. 7
2.1.2 Software Requir ements ............................................................................................... 7
2.2 Software B uil d Environment ..................................................................................................... 8
2.2.1 Software Architecture .................................................................................................. 8
2.2.2 AP I/ Libr ar y and Header Files ..................................................................................... 10
2.2.3 External Appl i cati on ................................................................................................... 11
2.2.4 Em bedded Application .............................................................................................. 11
2.2.5 Build Environment with the Seri al Boot Loader .......................................................... 11
2.2.6 Build Environm ent with the USB DF U Boot Loader .................................................... 14
3 Te sting E nvironme nt ................................................................................................................... 17
3.1 EM V Level I Compl iant Testing .............................................................................................. 17
3.2 CCI D Testin g ......................................................................................................................... 17
3.2.1 USB Testing: Microsoft HCT/DTM, and USB Command Verifier ................................ 17
3.2.2 Serial Testing ............................................................................................................ 18
4 Design Reference ........................................................................................................................ 19
4.1 Memory Map .......................................................................................................................... 19
4.1.1 Progr am Memory ....................................................................................................... 19
4.1.2 External D ata M emory ............................................................................................... 20
4.1.3 Internal Data Memory ................................................................................................ 20
4.2 Low-level A PI ......................................................................................................................... 20
4.2.1 Keyboar d Driver API – A vailable with all 73S12 xxF Devices ....................................... 21
4.2.2 LCD Driver API – Availabl e with all 73S12xxF Devices .............................................. 23
4.2.3 LED Driver AP I – A vailable with all 73S12 xxF Devices............................................... 24
4.2.4 Real Time Clock AP I - Available with the 68-pin 73S12xxF ....................................... 26
4.2.5 Smar t Card Interface Dri ver API – Available with all 73S1 2xxF Devices ..................... 30
4.2.6 SERIAL (RS232) Dri ver API – Available with all 73S12 xxF Devices ........................... 39
4.2.7 USB API – Available with 64K Flash version of the 73S12xxF ................................... 42
4.2.8 Clock Gener ator Cir cuit API – Available with all 73S12 xxF Devices ........................... 51
4.2.9 Power Man agement API – Available wit h all 7 3S12 xxF Devices ................................ 52
4.2.10 Analog Threshold M anagement D r i ver API – Available with all 73S12 xxF Devices ..... 53
4.2.11 Event Management API – Available with all 73 S12xxF Devices ................................. 55
4.2.12 Timers API – A vailable with all 73S12 xxF Devices ..................................................... 57
4.2.13 User IO API – Available with all 73S12 xxF Devices ................................................... 58
4.2.14 External Interrupts API – Available with all 73S12 xxF Devices ................................... 60
4.2.15 Special Function R egister API – A vailable with all 73S12 xxF Devices ........................ 61
4.2.16 Flash/M emory API – Available with all 73 S12xxF Devices.......................................... 63
4.2.17 Boot Loader and Passcode M anagement – Available with the LAPI-*BL. lib Only ....... 67
4.2.18 Secur ity Mode Management - Available with the LAPI -*BL.lib Only ........................... 69
4.2.19 Other Mi scell aneous API Calls – Available with all 7 3S12xxF Devices ....................... 71
4.3 High-L evel AP I ....................................................................................................................... 72
4.3.1 Smar t Card Contr ol ................................................................................................... 72
4.4 F lash Pr ogrammi ng ............................................................................................................... 85