Freescale公司的MC9S08JM16是低成本高性能的HCS08系列MCU.CPU工作頻率48MHz,內部總線頻率24MHz,16KB在電路可編程的閃存,1KB RAM以及256B USB RAM.外設包括有USB, ADC, ACMP, SCI, SPI, IIC, 定時器,KBI和RTC等.廣泛應用在PC外設和I/O模塊,照明控制系統(tǒng),測試和測量設備,條形碼掃描系統(tǒng),病人監(jiān)視系統(tǒng),工業(yè)網(wǎng)絡設備和POS打印機等.本文介紹了MC9S08JM16系列的主要特性,方框圖,基本系統(tǒng)連接圖以及S08JM16評估板主要特性,詳細電路圖和采用S08JM16的血糖監(jiān)視儀方框圖和所用的主要元器件.
MC9S08JM16 series MCUs are members of the low-cost, high-performance HCS08 family of 8-bit microcontroller units (MCUs). All MCUs in the family use the enhanced HCS08 core and are available with a variety of modules, memory sizes, memory types, and package types.
MC9S08JM16系列主要特性:
8-Bit HCS08 Central Processor Unit (CPU)
• 48 MHz HCS08 CPU (central processor unit)
• 24 MHz internal bus frequency
• HC08 instruction set with added BGND instruction
• Background debugging system
• Breakpoint capability to allow single breakpoint setting during in-circuit debugging (plus two more breakpoints in on-chip debug module)
• In-circuit emulator (ICE) debug module containing two comparators and nine trigger modes. Eight deep FIFO for storing change-of-flow addresses and event-only data. Debug module supports both tag and force breakpoints
• Support for up to 32 interrupt/reset sources
Memory Options
• Up to 16 KB of on-chip in-circuit programmable flash memory with block protection and security options
• Up to 1 KB of on-chip RAM
• 256 bytes of USB RAM
Clock Source Options
• Clock source options include crystal, resonator, external clock
• MCG (multi-purpose clock generator) — PLL and FLL; internal reference clock with trim adjustment
System Protection
• Optional computer operating properly (COP) reset with option to run from independent 1 kHz internal clock source or the bus clock
• Low-voltage detection with reset or interrupt
• Illegal opcode detection with reset
• Illegal address detection with reset
Power-Saving Modes
• Wait plus two stops
Peripherals
• USB — USB 2.0 full-speed (12 Mbps) with dedicated on-chip 3.3 V regulator and transceiver; supporting endpoint 0 and up to 6 additional endpoints
• ADC — 8-channel, 12-bit analog-to-digital converter with automatic compare function;
internal temperature sensor
• ACMP — Analog comparator with option to ompare to internal reference; operation in stop3 mode
• SCI — Up to two serial communications interface modules with optional 13-bit break; LIN
Extensions
• SPI — Two 8- or 16-bit selectable serial peripheral interface modules with a receive data buffer hardware match function
• IIC — Inter-integrated circuit bus module to operate at up to 100 kbps with maximum bus
loading; multi.masteroperation; programmable slave address; interrupt-driven yte-by-byte data transfer; broadcast mode; 10-bit addressing
• Timers — One 2-channel and one 4-channel 16-bit timer/pulse-width modulator (TPM)
modules; selectable input capture, output compare, and edge-aligned PWM capability on
each channel. Each timer module may be configured for buffered, centered PWM (CPWM) on all channels
• KBI — 7-pin keyboard interrupt module
• RTC — Real-time counter with binary- or decimal-based prescaler
Input/Output
• Up to 37 general purpose input/output pins
• Software selectable pullup on ports when used as inputs
• Software selectable slew rate control on ports when used as outputs
• Software selectable drive strength on ports when used as outputs
•masterreset pin and power-on reset (POR)
• Internal pullup on RESET, IRQ, and BKGD/MS pins to reduce customer system cost
Package Options
• 48-pin quad flat no-lead (QFN)
• 44-pin low-profile quad flat package (LQFP)
• 32-pin low-profile quad flat package (LQFP)
圖1.MC9S08JM16系列方框圖
圖2.MC9S08JM16基本系統(tǒng)連接圖
9S08JM16評估板
DEMO9S08JM16 is a cost-effective demonstration kit enabling quick MC9S08JM16 evaluation. The kit includes a DEMOJM base board and a MC9S08JM16 daughter card and can be used to demonstrate the features of the MC9S08JM16 device, starting with the on-chip USB 2.0 full-speed device controller and transceiver. The USB features are supported in hardware through a dedicated USB mini-AB connector and in software through the included complimentary USB-LITE stack by CMX. Built-in USB-BDM circuitry is available for debugging and programming, serial communication and simple logic analyzer.
9S08JM16評估板主要特性:
On-board Logic Analyzer
On-board Virtual Serial Port
ON/OFF Power Switch w/ LED indicator
A 6VDC to 12VDC power supply input barrel connector
USB device mode and host mode support with Mini-AB USB connector
CAN Module with Enable
3-axis Accelerometer with Enable
8 User LED’s with Enable
4 User Push Buttons with Enable
1 Piezo Buzzer with Enable
1 Piezo Buzzer with Enable
I²C Pullups with Enable
10K Ohm POT with Enable
圖3.S08JM16評估板外形圖
圖4.S08JM16評估板電路圖(1)
圖5.S08JM16評估板電路圖(2)
圖6.S08JM16評估板電路圖(3)
圖7.S08JM16評估板電路圖(4)
血糖監(jiān)視儀方框圖
A glucometer is a device for determining the approximate concentration of glucose in the blood. It is a key element of home blood glucose monitoring (HBGM) for people with diabetes mellitus.
圖8.血糖監(jiān)視儀方框圖
血糖監(jiān)視儀方框圖所用主要元器件
MCU/MPU:
S08JM
MCF51JM
S08JS
S08LL
MCF51QE
電源管理:
MC34712
MC34713
MC34716
MC34717
傳感器:
MMA745xL
Keypad:
MPR083
MPR084
無線通信:
MC13191