công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

AN1576 bảng dữ liệu(PDF) 13 Page - STMicroelectronics

tên linh kiện AN1576
Giải thích chi tiết về linh kiện  The In-Application Programming
PDF  15 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1576 bảng dữ liệu(HTML) 13 Page - STMicroelectronics

Back Button AN1576 Datasheet HTML 7Page - STMicroelectronics AN1576 Datasheet HTML 8Page - STMicroelectronics AN1576 Datasheet HTML 9Page - STMicroelectronics AN1576 Datasheet HTML 10Page - STMicroelectronics AN1576 Datasheet HTML 11Page - STMicroelectronics AN1576 Datasheet HTML 12Page - STMicroelectronics AN1576 Datasheet HTML 13Page - STMicroelectronics AN1576 Datasheet HTML 14Page - STMicroelectronics AN1576 Datasheet HTML 15Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 13 / 15 page
background image
13/15
HDFLASH DRIVER
2.3.4 Firmware template
#include "io72521.h"/* ST72521 memory and registers mapping */
#include "HDFlash_macros.h"
/* HDFlash driver software
*/
unsigned char tempo; /*
stabilization delay used by macro */
/********VPP Supply 1ms stabilization delay********************/
#define Vpp_Enable()
{ \
ClrBit(PADR,1); \
for (tempo=0;tempo<1000;tempo++);
}
#define Vpp_Disable() SetBit(PADR,1) /* Disable Vpp macro
*/
void Loop(void);
/*************** Main****************************************/
void main(void)
{
/******************** Initialization ************************/
ST7_Init();
//General initialization
while(1) Loop();
}
/*****************UserWhileWriteBlock************************
void UserWhileWriteBlock(void)
{
WDGCR=0x08;
//Refresh WATCHDOG Timer
}
/*************** UserWhileErase ******************************
void UserWhileErase(void)
{
WDGCR=0x08;
//Refresh WATCHDOG Timer
}
/****Erasing & Reprogramming routines within External ISR*******/
@interrupt void On_SW1(void)
{
unsigned int cpt;
unsigned char *pFlash;
unsigned char ProgBuffer[45] @0x9C;
SPI_Init();
//initialize SPI communication
SPI_Rx(ProgBuffer,2,100,(char)0);
//Receive RASS keys from EEPROM
RASS_Disable(ProgBuffer[0],ProgBuffer[1]); //Unlock Flash
Vpp_Enable();
HDFlashEraseSector(1,1); //Erase Secor 1
for(cpt=0;cpt<2;cpt++)



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com