50 likes | 207 Views
This document outlines the flowchart processes for the LINX V1 system, focusing on Low Power Mode (LPM) management and data transmission/reception functionalities. It details how the system enters LPM with the SleepMs function and how TimerA is utilized for interrupt management. The flowchart covers key actions such as disabling interrupts, transmitting a sync byte and Chip ID, and listening for incoming data. This guide serves as a reference for effectively programming the LINX V1 system to optimize power consumption while enabling communication capabilities.
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