14
writing drivers
Filed Under (Uncategorized) by satish on 14-10-2009
Writing drivers : UART dricers ,I2c,PCI ,RTC …different types of drivers….
study manual of particular chip(I2c,UART,PCI….) manual and know ports how they are connected from Processor to Chip w.r.t Data lines ,address lines, Power pin etc…….
we have know memory mapping from RAM to processor and to chip.(how data lins are connected in different types of processors depends on their size either thay are 8 bit ,16 bit, 32 bit or 64 bit processors).
Difference betwen IRQ and Polling is interrupt line is handled by interrupt handler ,data wil send to dispaly device through handler.
Polling is requested by processor that data is avilable in FIFO of chip and get the data to dispaly on the device.
We have to know how each pin of Port (Each port contains 8 pins) if it is 6 port controller it contains p0 to p5 ports.
P0 adn p2 are not used for spefic purpose.
remaining ports are used to connect to diffent types of peripherlas like different chips.
GPIO:
OS porting: