Freescale Semiconductor DEMOJM Microcontroller Evaluation Board DEMOJM DEMOJM Benutzerhandbuch
Produktcode
DEMOJM
22
DEMOJM User Manual
6.5.2.2
Word Formatted Data
There are three commands which may be accepted. All commands must end
in the special characters #$0D and #$0A which are CR (carriage return) and
LF (line feed). The accepted commands are:
in the special characters #$0D and #$0A which are CR (carriage return) and
LF (line feed). The accepted commands are:
nnnn,nnnn,nnnn,nnnn
The nnnn values are 0000-FFFF and correspond in order to the data
displayed on both the graph and bar graphs as follows: X/A, Y/B, Z/C, W/D.
displayed on both the graph and bar graphs as follows: X/A, Y/B, Z/C, W/D.
nnnn:nnnn:nnnn:nnnn
The nnnn values are 0000-FFFF and correspond in order to the data
displayed the graphing component as follows: X, Y, Z, W.
displayed the graphing component as follows: X, Y, Z, W.
nnnn=nnnn=nnnn=nnnn
The nnnn values are 0000-FFFF and correspond in order to the data
displayed on the bar graph component as follows: A, B, C, D.
displayed on the bar graph component as follows: A, B, C, D.
7
DEMONSTRATION MICROCONTROLLER APPLICATIONS
The following microcontroller applications are designed to run on the JM
processors.
processors.
7.1
Logic Analyzer Application
The function of the Logic Analyzer Application is to play a different tone and
illuminate a different LED for each of the buttons pressed on the DEMOJM
board. The potentiometer controls the intensity of an LED on the DEMOJM
board, via a PWM signal.
illuminate a different LED for each of the buttons pressed on the DEMOJM
board. The potentiometer controls the intensity of an LED on the DEMOJM
board, via a PWM signal.
7.2
Serial Accelerometer Application
This microcontroller application samples the state of the on-board three-axis
accelerometer using on-chip A/D converter channels. This data is converted
into ASCII characters and sent out using the serial pins of the JM processor.
These serial pins may be connected to P&E’s virtual serial port (which is part
of the Embedded Multilink design). Jumper J4 controls this connection.
accelerometer using on-chip A/D converter channels. This data is converted
into ASCII characters and sent out using the serial pins of the JM processor.
These serial pins may be connected to P&E’s virtual serial port (which is part
of the Embedded Multilink design). Jumper J4 controls this connection.
P&E has two PC-based P&E Embedded Multilink Toolkit applications which
allow the serial port data generated by this application to be graphed. These
are documented in Section 6.4 - Accelerometer Demo Application and
Section 6.5 - Serial Grapher Application.
allow the serial port data generated by this application to be graphed. These
are documented in Section 6.4 - Accelerometer Demo Application and
Section 6.5 - Serial Grapher Application.