50 likes | 196 Views
Main(). START. SleepMs. BFF Flowchart – LINX V1. Transmit. Initialize Ports. Listen. Get Chip ID. Transmit. BFF Flowchart – LINX V1 SleepMs Function. Ctr is a variable passed to the SleepMs function that indicates how may Milliseconds the system is to remain in Low Power Mode (sleep).
E N D
Main() START SleepMs BFF Flowchart – LINX V1 Transmit Initialize Ports Listen Get Chip ID Transmit
BFF Flowchart – LINX V1 SleepMs Function Ctr is a variable passed to the SleepMs function that indicates how may Milliseconds the system is to remain in Low Power Mode (sleep). Enter LPM0 Disable TimerA START TimerA Interrupt Disable Port1 Interrupt Ctr-- A Exit LPM Mode Ctr=0 ? TimerA Parameters (CCRO, CCTL) NO A Power-Up LINX YES Power Down LINX RETURN
BFF Flowchart – LINX V1 Transmit Function START Disable TimerA Interrupt Set T/R to Transmit Transmit Sync Byte (0xD4) Transmit 4 Chip ID Bytes RETURN
BFF Flowchart – LINX V1 Listen Function Port1 Interrupt START Get Byte Set T/R to Receive Sync Byte (D4) ? NO Enable Port1 Interrupt YES Enable Timer A for 10 seconds Get Packet Time Up ? NO Friend ? YES NO Blink YES RETURN
MSP430F2012/3 MSP430F2012/3 10 9 8 7 6 11