bff flowchart – linx v1 start initialize ports get chip id sleepms transmit listen transmit main()
Post on 18-Jan-2016
213 Views
Preview:
TRANSCRIPT
BFF Flowchart – LINX V1
START
InitializePorts
Get Chip ID
SleepMs
Transmit
Listen
Transmit
Main()
BFF Flowchart – LINX V1SleepMs Function
START
Disable Port1Interrupt
TimerA Parameters (CCRO, CCTL)
Ctr--
Enter LPM0
Ctr is a variable passed to the SleepMs function that indicates how may Milliseconds the system is to remain in Low Power Mode (sleep).
Power DownLINX
Ctr=0 ?
RETURN
NO
YES
A
A
Disable TimerA
Exit LPM Mode
Power-Up LINX
BFF Flowchart – LINX V1Transmit Function
START
Set T/R to Transmit
Transmit Sync Byte (0xD4)
RETURN
Disable TimerA
Interrupt
Transmit 4 Chip ID Bytes
BFF Flowchart – LINX V1Listen Function
START
Enable Timer A for 10 seconds
Get Byte
Time Up ?
RETURN
NO
YES
Sync Byte
(D4) ?
NO
YES
Friend ?
Get Packet
YESNOBlink
Set T/R to Receive
Enable Port1 Interrupt
MSP430F2012/3
MSP430F2012/3
109
6
8
7
11
top related