manualshive.com logo in svg
background image

 

Free Star Pro Series 

 
 

ZFSM-201-EVB-1 

Evaluation Board 

SMAC Programmers Guide 

 

ZFSM-201-1 FreeStar Pro Module 

Document # 0006-00-08-02-000 

(Rev B)

 

 

 

Содержание ZFSM-201-EVB-1

Страница 1: ...Free Star Pro Series ZFSM 201 EVB 1 Evaluation Board SMAC Programmers Guide ZFSM 201 1 FreeStar Pro Module Document 0006 00 08 02 000 Rev B ...

Страница 2: ...ENT 15 3 2 STATE DIAGRAMS 16 3 2 1 Main State Diagram 16 3 2 2 AppInit State Diagram 17 3 2 3 Pseudo Random Binary Sequence PRBS State Diagram 18 3 2 4 Continuous Receive State Diagram 19 3 2 5 Transmit Range Message State Diagram 20 3 2 6 Receive Range Message State Diagram 21 3 2 7 PERT Transmit Message State Diagram 22 3 2 8 PERT Receive Message State Diagram 23 3 2 9 Hibernate using 2kHz Oscil...

Страница 3: ...ogrammers Guide Rev B 0006 00 08 02 000 Page 3 of 34 3 7 RECEIVING A UART MESSAGE 33 3 8 TRANSMITTING A UART MESSAGE 33 3 9 TIMERS 34 3 10 EVENTS 34 3 11 READING ADC S 34 3 12 USER INPUTS SWITCHES 34 4 REVISION HISTORY 34 ...

Страница 4: ...edded Workbench for ARM project The source code exercises key features of the MC13224V and provides a good reference or starting point for creating custom applications on the SMAC codebase The application source code includes the following features RF Evaluation Range Test Application Packet Error Rate Test PERT Application Transmitting and receiving on the UART Using low power modes Reading and w...

Страница 5: ...1 EVB 1 Evaluation Board SMAC Programmers Guide 0006 00 08 02 000 ZFSM 201 EVB 1 Evaluation Board BeeKit Porting Guide 0006 00 08 03 000 ZFSM 201 EVB 1 Evaluation Board MAC Programmers Guide 0006 00 08 05 000 ZFSM 201 KIT 1 Wireless UART Application User Guide 0006 00 08 06 000 ZFSM 201 KIT 1 ZFSM 201 EVB 1 Erratum 0006 00 08 04 000 Note The CEL documents listed above are included on the CEL CD 2 ...

Страница 6: ...eveloped based on the BeeKit SMAC codebase is included on the CEL CD in the directory ZFSM 201 Application Source Files CEL_SMAC_111_v1 2 CEL_SMAC_111 It is titled CEL_SMAC_111 eww The project was based on the Generic Application template in BeeKit see Figure 3 with changes to a few of the Application Source files Figure 3 Screen BeeKit New Project 2 2 2 Changes to BeeKit Generated Files The defau...

Страница 7: ...e to new codebases or other projects quicker and cleaner Several files created by BeeKit had to be modified They include changes to o project settings o TransceiverConfigMngmnt h file o generic_app c file o UartUtil c file o WirelessLinkMngmt c file These changes are fully documented at the top of the main_state c file and are shown in Table 3 Table 3 Code main_state c Changes to BeeStack Generate...

Страница 8: ...Utilities folder remove display c and sound c TransceiverConfigMngmnt h In workspace window in IAR under SMAC Source find and replace typedef enum Test_Mode_tag SMAC_TEST_MODE_IDLE 0 SMAC_TEST_MODE_CONTINUOUS_RX 1 SMAC_TEST_MODE_CONTINUOUS_TX_NOMOD 2 SMAC_TEST_MODE_CONTINUOUS_TX_MOD 3 SMAC_TEST_MODE_PULSE_PRBS9_TX 4 SMAC_TEST_MODE_PER_RX 5 SMAC_TEST_MODE_RANGE_RX 6 SMAC_TEST_MODE_PER_TX 7 SMAC_TES...

Страница 9: ...e application_globals h include main_state h 5 in void main find and comment out for void process_radio_msg data_indication_execute process_uart_data generic_app UartUtil c 1 comment out IntAssignHandler gUart1Int_c IntHandlerFunc_t UartIsr1 replace with IntAssignHandler gUart1Int_c IntHandlerFunc_t UartIsr1A 2 comment out ITC_EnableInterrupt gUart1Int_c copy and move to bottom of UART1 init routi...

Страница 10: ...neric_app c each file also has a corresponding header h file application_nvm c Contains the source code necessary to write to NVM applications c Contains the base applications for the CEL SMAC release o range test o packet error rate test o continuous receive o pseudo random binary sequence tx generic_app c See description in Section 0 above main_state c See description in Table 3 above timer c En...

Страница 11: ...the project when made by BeeKit and stored in the PLM and SMAC directories They are shown in Figure 5 below Figure 5 Screen IAR Workbench PLM and SMAC Source Files 2 5 DEBUG RELEASE WORKSPACE MODE During development it is strongly recommended that the Workspace be kept in Debug mode as shown in Figure 6 Figure 6 Screen IAR Workbench Debug mode ...

Страница 12: ...ght click on the project name In Figure 7 below the project name is CEL_SMAC_104_DP Select Options from the drop down Menu List Figure 7 Screen IAR Workbench Project Output Options In the category Output Converter check the Generate additional output box and in the Output format pull down box select binary as shown in Figure 8 Click OK Figure 8 Screen IAR Workbench Generating an Output File ...

Страница 13: ...P Select Options from the Menu List In the J Link J Trace category set the Reset to Software and the JTAG SWD speed to Adaptive as shown in Figure 9 Figure 9 Screen IAR Workbench Setting JTAG SWD Speed 2 8 OPTIMIZATIONS Use of optimizations is up to the developer For development and debugging it is strongly encouraged to keep the optimization level at None as shown in Figure 10 Figure 10 Screen IA...

Страница 14: ...e 11 Screen IAR Workbench Project Menu 2 9 2 Downloading into Flash Ensure J Link is connected to PC though the USB cable Ensure FreeStar Pro Evaluation Board is connected to the J Link though the ribbon cable plugged into the JTAG Header J1 Ensure the power switch SW6 is in the ON position as indicated by the red power LED D5 being on Under the Project menu select Download and Debug as shown in F...

Страница 15: ...o Although the Sample Project provided does not exercise every available feature and option many software components for developing custom applications are included such as Turning LED s on and off with a timer De bouncing switches Sending and receiving RF messages Using Analog to Digital Converters Using UART to send and receive data Using low power modes with different wakeup sources available U...

Страница 16: ...e the states used in the Sample Project with the goal of helping the user to understand the code and how to modify it for a custom application 3 2 1 Main State Diagram Section 3 2 5 Section 3 2 12 Section 3 2 2 Section 3 2 3 Section 3 2 4 Section 3 2 6 Section 3 2 7 Section 3 2 8 Section 3 2 9 Section 3 2 10 Section 3 2 11 ...

Страница 17: ...pInit INIT_START Initialize Selected RAM Initialize UART1 Set GPIO44 45 as outputs for TX RX control Store GPIO State FIRST_TIME_POWER Set Default Values Initiate write to NVM RESTORE_SETTINGS Read and restore device settings from NVM NO FIRST_TIME_ POWER_WAIT Is write to NVM done NO INIT_DONE Start LED Startup Sequence Start Timer0 Start Timer1 Restore Main State YES Figure 14 Diagram AppInit Sta...

Страница 18: ...FreeStar Pro SMAC Programmers Guide Rev B 0006 00 08 02 000 Page 18 of 34 3 2 3 Pseudo Random Binary Sequence PRBS State Diagram Figure 15 Diagram PRBS State ...

Страница 19: ...FreeStar Pro SMAC Programmers Guide Rev B 0006 00 08 02 000 Page 19 of 34 3 2 4 Continuous Receive State Diagram Figure 16 Diagram Continuous Receive State ...

Страница 20: ..._RANGE_ ACK_TX State WAITING_RANGE_ NOACK_TX State WAITING_RANGE_ SINGLE_TX State Set Dual Port RF Initialize Radio Flags Ready to Transmit Single Message Require Acks YES YES Require Acks NO YES NO Time to transmit another message YES NO YES Done transmitting message Setup Receive YES NO Receive Done Single Message YES NO NO Done Done Done transmitting message NO YES TRANSMIT NO YES NO Figure 17 ...

Страница 21: ...FreeStar Pro SMAC Programmers Guide Rev B 0006 00 08 02 000 Page 21 of 34 3 2 6 Receive Range Message State Diagram Figure 18 Diagram Receive Range Message State ...

Страница 22: ...FreeStar Pro SMAC Programmers Guide Rev B 0006 00 08 02 000 Page 22 of 34 3 2 7 PERT Transmit Message State Diagram Figure 19 Diagram PERT Transmit Message State ...

Страница 23: ...FreeStar Pro SMAC Programmers Guide Rev B 0006 00 08 02 000 Page 23 of 34 3 2 8 PERT Receive Message State Diagram Figure 20 Diagram PERT Receive Message State ...

Страница 24: ...FreeStar Pro SMAC Programmers Guide Rev B 0006 00 08 02 000 Page 24 of 34 3 2 9 Hibernate using 2kHz Oscillator State Diagram Figure 21 Diagram Hibernate using 2kHz Oscillator State ...

Страница 25: ...FreeStar Pro SMAC Programmers Guide Rev B 0006 00 08 02 000 Page 25 of 34 3 2 10 Hibernate using 32kHz Oscillator State Diagram Figure 22 Diagram Hibernate using 32kHz Oscillator State ...

Страница 26: ...FreeStar Pro SMAC Programmers Guide Rev B 0006 00 08 02 000 Page 26 of 34 3 2 11 Doze using 24MHz Reference Oscillator State Diagram Figure 23 Diagram Doze using 24MHz Oscillator State ...

Страница 27: ...FreeStar Pro SMAC Programmers Guide Rev B 0006 00 08 02 000 Page 27 of 34 3 2 12 Enable Buck Regulator State Figure 24 Diagram Enable Buck Regulator State ...

Страница 28: ...FreeStar Pro SMAC Programmers Guide Rev B 0006 00 08 02 000 Page 28 of 34 3 2 13 Save to NVM State Diagram Figure 25 Diagram Save to NVM State ...

Страница 29: ...FreeStar Pro SMAC Programmers Guide Rev B 0006 00 08 02 000 Page 29 of 34 3 2 14 NVM Read State Diagram Figure 26 Diagram NVM Read State ...

Страница 30: ...FreeStar Pro SMAC Programmers Guide Rev B 0006 00 08 02 000 Page 30 of 34 3 2 15 UART Receive State Diagram Figure 27 Diagram UART Receive State ...

Страница 31: ...FreeStar Pro SMAC Programmers Guide Rev B 0006 00 08 02 000 Page 31 of 34 3 2 16 Reading ADC s State Diagram Figure 28 Diagram Reading ADC s State ...

Страница 32: ...acro only looks at the end result not what happened Further coding could be done by the application to track the status of the message and verify complete success See the RangeAppTransmit function in applications c 3 4 RECEIVING AN RF MESSAGE 3 4 1 More information See Freescale documents Simple Media Access Controller SMAC User s Guide Freescale Doc SMACRM and MC1322x Simple Media Access Controll...

Страница 33: ...HANGING THE RF POWER 3 6 1 More information See Freescale documents Simple Media Access Controller SMAC User s Guide Freescale Doc SMACRM and MC1322x Simple Media Access Controller SMAC Reference Manual Freescale Doc 22xSMACRM for more information The SMAC codebase contains an API to change the power named MLMEPAOutputAdjust It is called in the ChangePower function in the main_state c For example ...

Страница 34: ...ss mode See Freescale Semiconductors MC1322x Reference Manual Freescale Doc MC1322xRM When a GUI message is received to query the A D channels a Timer is set up to read the A D s every 500mS The ADC_Setup function in main_state c sets up the A D s Although the battery is used as the A D reference its value is based on an internal 1 2V reference Value read back by the 9th A D input battery is actua...

Отзывы: