Embedded System

Take an example of AT91SAM7S64 integrated chip,

1. Architecture: CPU [ARM, AVR, PowerPC, etc]

2. Connect Bus: ISA, AHP, USB, CAN, IIC, SPI, etc.

3. Basic Device: Clock [PMC], Trigger [AIC], Reset [RSTC], WatchDog [WDT], Memory [MC], Timer [TC]

4. Extension Device: Digital and Analog [A/D, D/A], I/O [PIA], Series [UART], etc

Every almost hardware of embedded chip like this. Whereas the experience to develop Drivers for Embedded System can conclusion in one sentence, according datasheet and modify the variable of register.

I separate Register into three categories,

1. Mode, for compatible application.

2. Process, for clearly the action of device.

3. Trigger, for trigger between CPU and device.

Those three aspects is the most important for developing a device driver. Even it is looks like very easy, but for modifying the register one bit, you should read many datasheet and know many about the architecture of CPU, such as the hazard vector, it usually located in the front of memory address.

Clearly know Memory Address is the key of success,

In memory address, sometimes, it will divide into several types, commonly, it is hazard vector, device register, and store memory. The probe in C/C++ can point at all of the memory address. There is way we using probe as a register pointer. But, remember that if you system setup a operating system, you can not modify register value directly in application layer.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值