欢迎访问ic37.com |
会员登录 免费注册
发布采购

AN4025 参数 Datasheet PDF下载

AN4025图片预览
型号: AN4025
PDF下载: 下载PDF文件 查看货源
内容描述: 实现一个血糖仪和血压计医疗器械 [Implementing a Glucometer and Blood Pressure Monitor Medical Devices]
分类和应用: 医疗器械
文件页数/大小: 31 页 / 2828 K
品牌: FREESCALE [ Freescale ]
 浏览型号AN4025的Datasheet PDF文件第18页浏览型号AN4025的Datasheet PDF文件第19页浏览型号AN4025的Datasheet PDF文件第20页浏览型号AN4025的Datasheet PDF文件第21页浏览型号AN4025的Datasheet PDF文件第23页浏览型号AN4025的Datasheet PDF文件第24页浏览型号AN4025的Datasheet PDF文件第25页浏览型号AN4025的Datasheet PDF文件第26页  
Micro SD Card  
Command  
SD_CMD55  
SD_CMD56  
SD_CMD58  
SD_CMD59  
Description  
Defines the next command  
Used either to transfer a Data Block or to get a Data Block  
Reads the OCR register of a card  
Turns the CRC option on or off  
9.2 SD Card Initialization  
To use an SD Card it is necessary to follow a specic sequence for initialization. The rst step is to set the SPI clock. The MCU  
must then send 80 clock signals before it starts communication. This allows initialization of all the registers. The slave pin is  
congured at zero with this value the MCU enters SPI mode and a CRC byte is sent. After the conguration, the MCU starts  
to check the block length and place the clock to maximum.  
Figure 21. Initialization flowchart  
SD.c le  
As explained in Figure 21, the SD Card initialization is executed with the SD_init function. The slave is enabled and disabled.  
Delays are generated prior verifying the IDLE command. The MCU sends a byte that contains information to send the argument  
and the CRC waits for a response from the slave device.  
The card is continuously polled with initialization and block-length commands until the idle bit becomes clear, indicating that  
the card is fully initialized and ready to respond to general commands.  
For more information about SD Card communication, Freescale provides the design reference manual titled SD Card Reader  
Using the M9S08JM60 Series Designer Reference Manual (document DRM104).  
Table 7. SD Card function  
Functions  
Parameters  
Functionality  
SD_Read_Block(UINT32  
u16SD_Block,UINT8 *pu8Data-  
Pointer)  
u16SD_BlockIndicates the block to read. *pu8 Reads an SD Card block and if an  
DataPointerBase pointer to store the data from error occurs a code returns  
the SD Card.  
SD_Write_Block(UINT32  
u16SD_Block,UINT8 *pu8Data-  
Pointer)  
UINT32 u16SD_BlockIndicates the block to b Writes one SD Card block and if an  
write. UINT8 *pu8DataPointerBase pointer to  
error occurs a code returns.  
store the data to SD Card.  
9.3 Stored Information  
The code below shows how to use the SD.c functions that store diagnostic information (glucose levels and blood pressure) with  
different data. Each diagnose is saved differently. For example, the blood pressure diagnostic saves the systolic pressure, diastolic  
pressure, and the heart beats taken.  
Implementing a Glucometer and Blood Pressure Monitor Medical Devices, Rev. 1, 4/2010  
22  
Freescale Semiconductor, Inc.  
 复制成功!