Professional Documents
Culture Documents
Assignment A
1) Using description of ATMega328p:
a) Architectural block diagram:
DATA BUS
8-Bits
Program
32Kb Counter
programmable 14
flash memory
16-bits
General
16 Registers
(32 x 8bits)
Instruction
Register
I/O Memory
Status Register
SREG
PIC16F877 has a working register (accumulator) whereas the ATMega328p has 32 general
purpose registers which functions as the working registers.
PIC has a 13bit program counter compared to the 14bit program counter on the ATMega.
The arithmetic and logical instructions of the ATMega can only operate on information
stored in the working register, however on the PIC arithmetic and logical instructions can
be received from the data bus also.
The PIC features 6K x 14 words of flash program memory compared to the 16K x 16 words
of flash program memory on the ATMega.