STM32F103读写24C02 C程序 有硬件电路图和程序.pdfVIP

  • 63
  • 1
  • 约1.04万字
  • 约 10页
  • 2020-05-23 发布于河北
  • 举报

STM32F103读写24C02 C程序 有硬件电路图和程序.pdf

//实验24C02 连接在PF 口 //WP、A0、A1、A2 都接地,如下图所示。 //单片机:STM32F103 #include stm32f10x_flash.h #include stm32f10x_gpio.h #include stm32f10x_rcc.h #define AT24C02 0xa0 //AT24C02 地址 /******************************** 变量定义 */ GPIO_InitTypeDefGPIO_InitStructure; //GPIO ErrorStatusHSEStartUpStatus; unsignedchar Count1,Count2; unsignedint USEC; staticvu32TimingDelay; unsignedchar Readzfc; unsignedcharpDat[8] {0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55};//实验数据 unsignedchar R_Dat[8]; /*********************************声明函数 */ voidRCC_Configuration(void); void SysTick_Configura

文档评论(0)

1亿VIP精品文档

相关文档