Chapter 2 - Understanding Data sheets:

Assume we are using a PIC18F46K40. Using the the information on PIC and the data sheet answer the following:

  1. What is the 5K pricing for this chip?
  2. How many pins does this chip have?
  3. What is the Max. CPU speed?
  4. What is the resolution for the DAQ?
  5. What is the ALU size?
  6. What is the program memory size?
  7. What is the size of the DRAM?
  8. What is the size of the SRAM?
  9. What is th emax. number of instructions you can write?
  10. Draw the interfaces between CPU and Memory devices.
  11. What is the size of the working register for this chip?
  12. According to the spec sheet, core features, what type of instruction architecture this chip has?
  13. In terms of memory organization, what type of memory architecture does it have?
  14. What types of memory types are used in PIC18 enhanced microcontroller ?
  15. What is the flash memory used for?
  16. What is the EEPROM is used for?
  17. How many bits are used for the program counter?
  18. Looking at the register summary what is the address of the WREG?
  19. How many WREG does this chip have? (data sheet P. 143)
  20. Is the working register in the data memory or program memory? (data sheet P. 142)
  21. What type of physical packages this chip can be purchased in?
  22. How many pins the PDIP package has?
  23. Is PDIP package ceramic or plastic?
  24. How many physical LEADS the UQFN package has?
  25. How many actual IO Pins does it have?
  26. Looking at fig. 1-1 in the data sheet , What is the address bus size for the program memory?
  27. Looking at fig. 1-1 in the data sheet, What is the data bus size for the program memory?
  28. Looking at fig. 1-1 in the data sheet, What is the address bus size for the datamemory?
  29. Looking at fig. 1-1 in the data sheet, What is the data bus size for the data memory?
  30. How many stack levels are available in this chip?
  31. How many timers this chip has?

Chapter 2 - Example Problem:

  • Name the three basic operations in MCU?
  • Name the two models that MCU can operate its basic three-step operation.
  • Assume each MCU operation takes 2 clock cycles and the clock speed is 1 MHz. How long (in time) does it take to complete 10 instructions using this sequential model?
  • What is the purpose of memory cache? What technology does it typically use?
  • Name the main memory models. Explain the differences.
  • What type of Memory Model RISC uses?
  • Using a drawing show the Harvard Memory Model.
  • Between Flash and SRAM which is cheaper?
  • Between Flash and SRAM which is faster?
  • Between Flash and SRAM which is considered to be non-volatile memory?
  • Between Flash and SRAM which one can be used to make EEPROM?
  • What Memory Model PIC uses?
  • What instruction Set Model PIC uses?
  • Can the width of the DATA bus used for programing and data memories be different?
  • Can the width of the ADDRESS bus used for programing and data memories be different?
  • What are the main three memory types we discussed in class?
  • Draw and show how a 32K program memory can be connected to an 8-bit MCU. Show all the buses and number the last register location of the memory using a Hex value.
  • Name the two sections of Data Memory in a PIC.
  • Draw and show how a 31-deep with 21 bits can be interfaced to an 8-bit MCU.
  • What is the purpose of status register in a PIC? Give an example.
  • Using a drawing show how ALU operates. On your drawing show WREG, and STAT REG. Where is the out put going?
  • What is the purpose of the program counter? How many bits does it have?
  • How many bit does FSR have?
  • What are SFRs located in? Which part of the memory?
  • In PIC the Flash cells are utilized for both program memory and data EEPROM (data sheet P.22). But, what other type of technology is used for Data Memory?
  • What is the purpose of Opcode in a MCU instruction? Give an example.
  • What is Access RAM? Where is it located at?
  • What is the difference between SFR and FSR?
  • What is the purpose of “a” bit in an instruction?
  • Refer to PIC Architecture Diagram to answer the following questions: - see teh data sheet

  • How many Banks are used in the data memory? How do you know?
  • How many registers are in each bank? data sheet P.132
  • What is data bus size for the program memory?
  • What is the size of the address bus for the program memory
  • How many stack registers the chip has?
  • How many bits the WREG has?
  • What is the ALU size in terms of number of bits?
  • How many bits the Program Counter (PC) has? Explain why?