參數(shù)資料
型號: PIC876
廠商: Microchip Technology Inc.
英文描述: 28/40-pin 8-Bit CMOS FLASH Microcontrollers
中文描述: 28/40-pin 8位CMOS閃存微控制器
文件頁數(shù): 45/200頁
文件大?。?/td> 3544K
代理商: PIC876
第1頁第2頁第3頁第4頁第5頁第6頁第7頁第8頁第9頁第10頁第11頁第12頁第13頁第14頁第15頁第16頁第17頁第18頁第19頁第20頁第21頁第22頁第23頁第24頁第25頁第26頁第27頁第28頁第29頁第30頁第31頁第32頁第33頁第34頁第35頁第36頁第37頁第38頁第39頁第40頁第41頁第42頁第43頁第44頁當(dāng)前第45頁第46頁第47頁第48頁第49頁第50頁第51頁第52頁第53頁第54頁第55頁第56頁第57頁第58頁第59頁第60頁第61頁第62頁第63頁第64頁第65頁第66頁第67頁第68頁第69頁第70頁第71頁第72頁第73頁第74頁第75頁第76頁第77頁第78頁第79頁第80頁第81頁第82頁第83頁第84頁第85頁第86頁第87頁第88頁第89頁第90頁第91頁第92頁第93頁第94頁第95頁第96頁第97頁第98頁第99頁第100頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁第192頁第193頁第194頁第195頁第196頁第197頁第198頁第199頁第200頁
1999 Microchip Technology Inc.
DS30292B-page 45
PIC16F87X
4.6
Writing to the FLASH Program
Memory
A word of the FLASH program memory may only be
written to if the word is in a non-code protected seg-
ment of memory and the WRT configuration bit is set.
To write a FLASH program location, the first two bytes
of the address must be written to the EEADR and
EEADRH registers and two bytes of the data to the
EEDATA and EEDATH registers, set the EEPGD con-
trol bit (EECON1<7>), and then set control bit WR
(EECON1<1>). The sequence in Example 4-4 must be
followed to initiate a write to program memory.
The microcontroller will then halt internal operations
during the next two instruction cycles for the T
PEW
(parameter D133) in which the write takes place. This
is not SLEEP mode, as the clocks and peripherals will
continue to run. Therefore, the two instructions follow-
ing the “
BSF EECON, WR
” should be
NOP
instructions.
After the write cycle, the microcontroller will resume
operation with the 3rd instruction after the EECON1
write instruction.
EXAMPLE 4-4:
FLASH PROGRAM WRITE
BSF STATUS, RP1 ;
4.7
Write Verify
Depending on the application, good programming prac-
tice may dictate that the value written to the memory
should be verified against the original value. This
should be used in applications where excessive writes
can stress bits near the specification limit.
Generally a write failure will be a bit which was written
as a '1', but reads back as a '0' (due to leakage off the
bit).
BCF STATUS, RP0 ; Bank 2
MOVLW ADDRH ;
MOVWF EEADRH ; MSByte of Program Address to read
MOVLW ADDRL ;
MOVWF EEADR ; LSByte of Program Address to read
MOVLW DATAH ;
MOVWF EEDATH ; MS Program Memory Value to write
MOVLW DATAL ;
MOVWF EEDATA ; LS Program Memory Value to write
BSF STATUS, RP0 ; Bank 3
BSF EECON1, EEPGD ; Point to PROGRAM memory
BSF EECON1, WREN ; Enable writes
BCF INTCON, GIE ; Disable Interrupts
MOVLW 55h ;
Required
MOVWF EECON2 ; Write 55h
Sequence
MOVLW AAh ;
MOVWF EECON2 ; Write AAh
BSF EECON1, WR ; Set WR bit to begin write
NOP ; Instructions here are ignored by the microcontroller
NOP
; Microcontroller will halt operation and wait for
; a write complete. After the write
; the microcontroller continues with 3rd instruction
BSF INTCON, GIE ; Enable Interrupts
BCF EECON1, WREN ; Disable writes
相關(guān)PDF資料
PDF描述
PIP201-12M-3 DC-to-DC converter powertrain
PIP3102-R LOGIC LEVEL TOPFET
PIP3203-A TOPFET high side switch
PIP3206-R TOPFET high side switch SMD version
PIP8.4 7,500 & 15,000 Watt TVS Module
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC9310 制造商:PICSEMI 制造商全稱:PICSEMI 功能描述:Async Boost with 600KHz switching
PICADILLO-35T 功能描述:Resistive Graphic LCD Display Module Transmissive Red, Green, Blue (RGB) TFT - Color I2C, SPI 3.5" (88.90mm) 320 x 480 制造商:4d systems pty ltd 系列:- 零件狀態(tài):有效 顯示類型:TFT - 彩色 顯示模式:可傳導(dǎo)的 觸摸屏:電阻 屏幕對角線尺寸:3.5"(88.90mm) 可視范圍:73.40mm 寬 x 49.00mm 高 背光:LED - 白 點像素:320 x 480 接口:I2C,SPI 圖形顏色:紅,綠,藍(RGB) 背景顏色:- 點尺寸:- 點間距:0.15mm 寬 x 0.15mm 高 標(biāo)準包裝:1
PICADLL 制造商:CALIBRE UK 功能描述:DEVELOPMENT DLLS I2C ADAPTER
PICAMBOX 制造商:Nwazet 功能描述:PI CAMERA BOX
PICAMBOXBUNDLE 制造商:Nwazet 功能描述:PI CAMERA BOX BUNDLE WITH FISHEYE LENS