Electronic Components Datasheet Search
  English  ▼

X  

CYRF69313 Datasheet(PDF) 21 Page - Cypress Semiconductor

Part # CYRF69313
Description  Programmable Radio-on-Chip LPstar
PDF  80 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  CYPRESS [Cypress Semiconductor]
Direct Link  http://www.cypress.com
Logo CYPRESS - Cypress Semiconductor

CYRF69313 Datasheet(HTML) 21 Page - Cypress Semiconductor

Back Button CYRF69313 Datasheet HTML 17Page - Cypress Semiconductor CYRF69313 Datasheet HTML 18Page - Cypress Semiconductor CYRF69313 Datasheet HTML 19Page - Cypress Semiconductor CYRF69313 Datasheet HTML 20Page - Cypress Semiconductor CYRF69313 Datasheet HTML 21Page - Cypress Semiconductor CYRF69313 Datasheet HTML 22Page - Cypress Semiconductor CYRF69313 Datasheet HTML 23Page - Cypress Semiconductor CYRF69313 Datasheet HTML 24Page - Cypress Semiconductor CYRF69313 Datasheet HTML 25Page - Cypress Semiconductor Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 80 page
background image
CYRF69313
Document Number: 001-66503 Rev. *C
Page 21 of 80
on the CPU speed. Refer to ‘Clocking’ Section for additional
information.
EraseBlock Function
The EraseBlock function is used to erase a block of 64
contiguous bytes in Flash. The first thing the EraseBlock function
does is to check the protection bits and determine if the desired
BLOCKID is writable. If write protection is turned on, the
EraseBlock function exits, setting the accumulator and KEY2
back to 00h. KEY1 has a value of 01h, indicating a write failure.
The EraseBlock function is only useful as the first step in
programming. Erasing a block does not cause data in a block to
be one hundred percent unreadable. If the objective is to
obliterate data in a block, the best method is to perform an
EraseBlock followed by a WriteBlock of all zeros.
To setup the parameter block for the EraseBlock function, correct
key values must be stored in KEY1 and KEY2. The block number
to be erased must be stored in the BLOCKID variable and the
CLOCK and DELAY values must be set based on the current
CPU speed.
ProtectBlock Function
The
CYRF69313
device
offers
Flash
protection
on
a
block-by-block basis. Table 29 lists the protection modes
available. In the table, ER and EW are used to indicate the ability
to perform external reads and writes. For internal writes, IW is
used. Internal reading is always permitted by way of the ROMX
instruction. The ability to read by way of the SROM ReadBlock
function is indicated by SR. The protection level is stored in two
bits according to Table 29. These bits are bit packed into the 64
bytes of the protection block. Therefore, each protection block
byte stores the protection level for four Flash blocks. The bits are
packed into a byte, with the lowest numbered block’s protection
level stored in the lowest numbered bits.
The first address of the protection block contains the protection
level for blocks 0 through 3; the second address is for blocks 4
through 7. The 64th byte stores the protection level for blocks
252 through 255.
The level of protection is only decreased by an EraseAll, which
places zeros in all locations of the protection block. To set the
level of protection, the ProtectBlock function is used. This
function takes data from SRAM, starting at address 80h, and
ORs it with the current values in the protection block. The result
of the OR operation is then stored in the protection block. The
EraseBlock function does not change the protection level for a
block. Because the SRAM location for the protection data is fixed
and there is only one protection block per Flash macro, the
ProtectBlock function expects very few variables in the
parameter block to be set prior to calling the function. The
parameter block values that must be set, besides the keys, are
the CLOCK and DELAY values.
EraseAll Function
The EraseAll function performs a series of steps that destroy the
user data in the Flash macros and resets the protection block in
each Flash macro to all zeros (the unprotected state). The
EraseAll function does not affect the three hidden blocks above
the protection block in each Flash macro. The first of these four
hidden blocks is used to store the protection table for its eight
Kbytes of user data.
Table 27. WriteBlock Parameters
Name
Address
Description
KEY1
0,F8h
3Ah
KEY2
0,F9h
Stack Pointer value, when SSC is
executed
BLOCKID
0,FAh
8 KB Flash block number (00h–7Fh)
4 KB Flash block number (00h–3Fh)
3 KB Flash block number (00h–2Fh)
POINTER
0,FBh
First of 64 addresses in SRAM, where
the data to be stored in Flash is
located prior to calling WriteBlock
CLOCK
0,FCh
Clock divider used to set the write
pulse width
DELAY
0,FEh
For a CPU speed of 12 MHz set to
56h
Table 28. EraseBlock Parameters
Name
Address
Description
KEY1
0,F8h
3Ah
KEY2
0,F9h
Stack Pointer value when SSC is
executed
BLOCKID
0,FAh
Flash block number (00h–7Fh)
CLOCK
0,FCh
Clock divider used to set the erase
pulse width
DELAY
0,FEh
For a CPU speed of 12 MHz set to
56h
Table 29. Protection Modes
Mode
Settings
Description
Marketing
00b
SR ER EW IW
Unprotected
Unprotected
01b
SR ER EW IW
Read protect
Factory upgrade
10b
SR ER EW IW
Disable external
write
Field upgrade
11b
SR ER EW IW
Disable internal
write
Full protection
7
6
5
4
3
2
1
0
Block n+3
Block n+2
Block n+1
Block n
Table 30. ProtectBlock Parameters
Name
Address
Description
KEY1
0,F8h
3Ah
KEY2
0,F9h
Stack Pointer value when SSC is
executed
CLOCK
0,FCh
Clock divider used to set the write
pulse width
DELAY
0,FEh
For a CPU speed of 12 MHz set to
56h



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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