Software Description
KT912F634UG User’s Guide Rev. 2.0 10/2013
32
Freescale Semiconductor, Inc.
Archive Information
Archive Information
Figure 29. Embedded Software Flow Chart
8.4.2
FreeMASTER Variables
The variables used for the application control have the prefix “
fm_
”. There is one structure with the name
“
fm_register
”. The variables of this structure are:
•
*fm_address - contains address of the 8-bit register
•
fm_data - contains data of the 8-bit register
•
*fm_address_16 - contains address of the 16-bit register
•
fm_data_16 - contains data of the 16-bit register
•
fm_read_write - information on the action - reading or writing to the register
•
fm_status - information on the action completion
•
fm_size - information on the size of the register (8-bit or 16-bit). The address and data are put in
corresponding variables.
8.4.2.1
Performing the FreeMASTER Variables Update
In the continuous loop, first the value of “fm_status“ is checked. It can have two enumerated values: ”pending”
or “done”. If the value is set to “pending”, then there is a request from the FreeMASTER control panel to read
or write the register value. The value of “fm_read_write“ is then checked to see, if a write or read command is
requested.The value of the variable “fm_size” is evaluated next, to determine if the data is 8 or 16-bit size.
Reset
LIN
communication
servicing
(LIN enabled) ?
System and
application init
Update analog die
registers based on
the FMaster
variables
(WD enabled) ?
WD servicing
D2D_ISR
LIN_ISR_SCI()
RTI
Clearing the flag
+
+
In
fini
te
lo
op
Reset
LIN
communication
servicing
(LIN enabled) ?
System and
application init
Update analog die
registers based on
the FMaster
variables
(WD enabled) ?
WD servicing
D2D_ISR
LIN_ISR_SCI()
RTI
Clearing the flag
+
+
In
fini
te
lo
op
Continuous Loop
Y
Y
N
N