1. 刚开始的波形不太对,比如如下代码 i2c_status = I2C_write( at24c02_write_buf, //pointer to data array , //length of data to be transmitted , //master or slaver 0x78, //slave address to transmit to , //transfer mode of operation //time out for bus busy ); 但是实际的波形是,把
启动bcm的sdk,会进入一个类似shell的交互界面,在其中如入命令,可以配置交换机芯片.本文主要记录一下命令: 1.端口限速命令 2.链路聚合命令 3.i2c控制命令 启动方法: /tmp/bcm # ./bcm.user.proxy“?”显示帮助信息.直接输入会显示出sdk对所有型号芯片支持的命令,以及当前所支持的命令.BCM.0> ?help: "??" or "help" for summaryCommands common to all modes
## (C) Copyright 2000 - 2008# Wolfgang Denk, DENX Software Engineering, wd@denx.de.## See file CREDITS for list of people who contributed to this# project.## This program is free software; you can redistribute it and/or# modify it under the terms of
1.I2C协议个. 2.1 I2CADR 地址寄存器CPU也可以是I2C的Slave,CPU的I2C地址有 I2CADR指定 2.2 I2CFDR 频率设置寄存器The serial bit clock frequency of SCL is equal to the CCB clock divided by the divider.用来设置I2C总线频率2.3 I2CCR 控制寄存器MEN: Module Enable. 置1时,I2C模块使能MIEN:Module Interrupt