công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

PIC12F519-E/P bảng dữ liệu(PDF) 24 Page - Microchip Technology

tên linh kiện PIC12F519-E/P
Giải thích chi tiết về linh kiện  8-Pin, 8-Bit Flash Microcontrollers
PDF  96 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  MICROCHIP [Microchip Technology]
Trang chủ  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC12F519-E/P bảng dữ liệu(HTML) 24 Page - Microchip Technology

Back Button PIC12F519-E/P Datasheet HTML 20Page - Microchip Technology PIC12F519-E/P Datasheet HTML 21Page - Microchip Technology PIC12F519-E/P Datasheet HTML 22Page - Microchip Technology PIC12F519-E/P Datasheet HTML 23Page - Microchip Technology PIC12F519-E/P Datasheet HTML 24Page - Microchip Technology PIC12F519-E/P Datasheet HTML 25Page - Microchip Technology PIC12F519-E/P Datasheet HTML 26Page - Microchip Technology PIC12F519-E/P Datasheet HTML 27Page - Microchip Technology PIC12F519-E/P Datasheet HTML 28Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 24 / 96 page
background image
PIC12F519
DS41319B-page 22
© 2008 Microchip Technology Inc.
5.2.2
WRITING TO FLASH DATA
MEMORY
Once a cell is erased, new data can be written. Pro-
gram execution is suspended during the write cycle.
The following sequence must be performed for a single
byte write.
1.
Load EEADR with the address.
2.
Load EEDATA with the data to write.
3.
Set the WREN bit to enable write access to the
array.
4.
Set the WR bit to initiate the erase cycle.
If the WR bit is not set in the instruction cycle after the
WREN bit is set, the WREN bit will be cleared in
hardware.
Sample code that follows this procedure is included in
Example 3.
EXAMPLE 3:
WRITING A FLASH DATA
MEMORY ROW
5.3
Write Verify
Depending on the application, good programming
practice may dictate that data written to the Flash data
memory be verified. Example 4 is an example of a write
verify.
EXAMPLE 4:
WRITE VERIFY OF DATA
EEPROM
5.4
Code Protection
Code protection does not prevent the CPU from per-
forming read or write operations on the Flash data
memory. Refer to the code protection chapter for more
information.
Note 1:
Only a series of BSF commands will work
to enable the memory write sequence
documented in Example 2. No other
sequence of commands will work, no
exceptions.
2:
For reads, erases and writes to the Flash
data memory, there is no need to insert a
NOP
into the user code as is done on
mid-range devices. The instruction imme-
diately
following
the
“BSF
EECON,WR/RD” will be fetched and
executed properly.
BANKSEL
EEADR
MOVLW
EE_ADR_WRITE
; LOAD ADDRESS
MOVWF
EEADR
;
MOVLW
EE_DATA_TO_WRITE ; LOAD DATA
MOVWF
EEDATA
; INTO EEDATA REGISTER
BSF
EECON,WREN
; ENABLE WRITES
BSF
EECON,WR
; INITITATE ERASE
MOVF
EEDATA, W
;EEDATA has not changed
;from previous write
BSF
EECON, RD
;Read the value written
XORWF
EEDATA, W
;
BTFSS
STATUS, Z
;Is data the same
GOTO
WRITE_ERR
;No, handle error
;Yes, continue



Html Pages

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 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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com