freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

microcontrollerarchitecture—pic18ffamily-資料下載頁(yè)

2025-09-20 20:39本頁(yè)面

【導(dǎo)讀】Microprocessorunit(MPU). Datamemoryfordata. I/Oports. ProgramMemory:32K(215). 16-bitregisters. DataMemory:4K. Addressrange:000to. 8-bitregisters. DataEEPROM. Notpartofthedata. ProgramMemory:32K. DataMemory:4K. widths.ProgramMemory:32K(215). 16-bitregisters. DataMemory:4K. 8-bitregisters. IncludesArithmetic. LogicUnit(ALU),WREG–workingregister. Instructiondecoder–。Registers. BankSelectRegister(BSR). ProgramCounter(PC). Controlunit. Addressbus. 21-bitaddressbusfor. Databus. 8-bitdatabusfordata. Controlsignals. ReadandWrite. Refertoyournotes!

  

【正文】 ster in PORTC ? Mnemonics: MOVWF PORTC, a ? (‘a(chǎn)’ indicates that PORTC is in the Access Bank) ? Binary format: 0000 1110 1000 0010 (82H is PORTC address) Opcode 8bit Literal 8bit Instruction Instruction Set Overview 0 7 8 15 k k k k k k k Opcode Literal Value Literal and Control Operations MOVLW 0 x 25 Literal Value k Opcode OR Illustration: Displaying a Byte at an I/O Port (1 of 5) ? Problem statement: ? Write instructions to light up alternate LEDs at PORTC. ? Hardware: ? PORTC ? bidirectional (input or output) port。 should be setup as output port for display ? Logic 1 will turn on an LED in Figure . Illustration (2 of 5) ? Interfacing LEDs to PORTC ? Port C is F82H ? Note that PORT C is set to be an output! ? Hence, TRISC (address 94H) has to be set to 0 TRISC=0 Illustration (3 of 5) ? Program (software) ? Logic 0 to TRISC sets up PORTC as an output port ? Byte 55H turns on alternate LEDs ? MOVLW 00 。Load W register with 0 ? MOVWF TRISC, 0 。Set up PORTC as output ? MOVLW 0x55 。Byte 55H to turn on LEDS ? MOVWF PORTC,0 。Turn on LEDs ? SLEEP 。Power down PIC18 Simulator ? Using the Program Memory editor type in the opcode MOVLW 00 and MOWWF TRISC,0 as described in page 52 of your textbook. ? Run the program in stepbystep mode and observe the PC. ? Observe how the NEXT INSTRUCTION changes. ? What is the value of final clock cycle? ? How long does it take to plete the program in sec.? ? PIC18 Simulator IDE Questions PIC18 Simulator IDE ? What is the address for TRISC? SFR ? F94 ? What is the address for PORTE? ? How many SFR registers we have? FFFF80 ? How many GPR? 0005FF ? How many bit PC has? Compare with Fig 28 Example Memory content Hex code Memory content binary code Mnemonics Leave space Illustration (4 of 5) ? Execution of the instruction: WREG=55 MOVWF PORTC 1 2 1 2 Copy from WREG?PORT C (82H) Contains 55
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1