Micrel MICRF505BML/YML
August 2006 10
M9999-092904
+1 408-944-0800
Writing to the control registers in MICRF505
Writing: A number of octets are entered into
MICRF505 followed by a load-signal to activate the
new setting. Making these events is referred to as a
“write sequence.” It is possible to update all, 1, or n
control registers in a write sequence. The address to
write to (or the first address to write to) can be any
valid address (0-21). The IO line is always an input
to the MICRF505 (output from user) when writing.
What to write:
The address of the control register to write
to (or if more than 1 control register should
be written to, the address of the 1
st
control
register to write to).
A bit to enable reading or writing of the
control registers. This bit is called the R/W
bit.
The values to write into the control
register(s).
What to write:
Field Comments
Address: A 7-bit field, ranging from 0 to 21. MSB is
written first.
R/W bit: A 1-bit field, = “0” for writing
Values: A number of octets (1-22 octets). MSB in
every octet is written first. The first octet is
written to the control register with the
specified address (=”Address”). The next
octet (if there is one) is written to the control
register with address = “Address + 1” and so
on.
Table 2.
How to write:
Bring CS active to active to start a write sequence.
The active state of the CS line is “high.” Use the
SCLK/IO serial interface to clock “Address” and
“R/W” bit and “Values” into the MICRF505.
MICRF505 will sample the IO line at negative edges
of SCLK. Make sure to change the state of the IO
line before the negative edge. Refer to figures
below.
Bring CS inactive to make an internal load-signal
and complete the write-sequence. Note: there is an
exception to this point. If the programming bit called
“load_en” (bit0 in ControlRegister0) is “0”, then no
load pulse is generated.
The two different ways to “program the chip” are:
Write to a number of control registers (0-22)
when the registers have incremental
addresses (write to 1, all or n registers)
Write to a number of control registers when
the registers have non-incremental
addresses.
Writing to a Single Register
Writing to a control register with address “A6. A5,
…A0” is described here. During operation, writing to
1 register is sufficient to change the way the
transceiver works. Typical example: Change from
receive mode to power-down.
What to write:
Field Comments
Address: 7 bit = A6, A5, …A0 (A6 = msb. A0 = lsb)
R/W bit: “0” for writing
Values: 8 bits = D7, D6, …D0 (D7 = msb, D0 = lsb)
Table 3.
“Address” and “R/W bit” together make 1 octet.
In addition, 1 octet with programming bits is entered. In
total, 2 octets are clocked into the MICRF505.
How to write:
Bring CS high
Use SCLK and IO to clock in the 2 octets
Bring CS low
C
S
SCLK
IO
A6 A5 A0
RW
D7 D6 D2
D1 D0
Address of register i RW Data to write into register i
Internal load pulse made here
Figure 1.
In Figure 1, IO is changed at positive edges of SCLK. The
MICRF505 samples the IO line at negative edges. The
value of the R/W bits is always “0” for writing.
Micrel MICRF505BML/YML
August 2006 11
M9999-092904
+1 408-944-0800
Writing to All Registers
After a power-on, all writable registers should be
written. This is described here.
Writing to all register can be done at any time. To
get the simplest firmware, always write to all
registers. The price to pay for the simplicity is
increased write-time, which leads to increased time
to change the way the MICRF505 works.
What to write
Field Comments
Address: ‘000000’ (address of the first register to write
to, which is 0)
R/W bit: “0” for writing
Values: 1
st
Octet: wanted values for
ControlRegister0. 2
nd
Octet: wanted values
for ControlRegister1 and so on for all of the
octets. So the 22
nd
octet wants values for
ControlRegister21. Refer to the specific
sections of this document for actual values.
Table 4.
“Address” and “R/W bit” together make 1 octet.
In addition, 22 octets with programming bits are entered.
In total, 23 octets are clocked into the MICRF505.
How to write:
Bring CS high
Use SCLK and IO to clock in the 23 octets
Bring CS low
Refer to the figure in the next section, “Writing to n
registers having incremental addresses”.
Writing to n Registers having Incremental
Addresses
In addition to entering all bytes, it is also possible to
enter a set of n bytes, starting from address i = “A6,
A5, … A0”. Typical example: Clock in a new set of
frequency dividers (i.e. change the RF frequency).
“Incremental addresses”. Registers to be written are
located in i, i+1, i+2.
What to write
Field Comments
Address: 7 bit = A6, A5, …A0 (A6 = msb. A0 = lsb)
(address of first byte to write to)
R/W bit: “0” for writing
Values: n* 8 bits =
D7, D6, …D0 (D7 = msb, D0 = lsb) (written
to control reg. with address ”i”)
D7, D6, …D0 (D7 = msb, D0 = lsb) (written
to control reg. with address ”i+1”)
D7, D6, …D0 (D7 = msb, D0 = lsb) (written
to control reg. with address ”i+n-1”)
Table 5.
“Address” and “R/W bit” together make 1 octet.
In addition, n octets with programming bits are entered.
Totally, 1 +n octets are clocked into the MICRF505.
How to write:
Bring CS high
Use SCLK and IO to clock in the 1 + n
octets
Bring CS low
In Figure 1, IO is changed at positive edges of SCLK. The
MICRF505 samples the IO line at negative edges. The
value of the R/W bits is always “0” for writing.
C
S
SCLK
IO
A6 A5 A0
RW
D7 D6 D2 D1 D0
Address of first RW
register to write to,
register i
Data to write
into register i
Internal load pulse made here
Data to write
into register i+1
Figure 2.
Micrel MICRF505BML/YML
August 2006 12
M9999-092904
+1 408-944-0800
Writing to n Registers having Non-Incremental
Addresses
Registers with non-incremental addresses can be
written to in one write-sequence as well. Example of
non-incremental addresses: “0,1,3”. However, this
requires more overhead, and the user should
consider the possibility to make a “continuous”
update, for example, by writing to “0,1,2,3” (writing
the present value of “2” into “2”). The simplest
firmware is achieved by always writing to all
registers. Refer to previous sections.
This write-sequence is divided into several sub-
parts:
Disable the generation of load-signals by
clearing bit “load_en” (bit0 in
ControlRegister0)
Repeat for each group of register having
incremental addresses:
o Bring CS active
o Enter first address for this group,
R/W bit and values
o Bring CS inactive
o Finally, enable and make a load-
signal by setting “load_en”
Refer to the previous sections for how to write to 1 or
n (with incremental addresses) registers in the
MICRF505.
Reading from the control registers in MICRF505
The “read-sequence” is:
1. Enter address and R/W bit
2. Change direction of IO line
3. Read out a number of octets and change IO
direction back again.
It is possible to read all, 1 or n registers. The
address to read from (or the first address to read
from) can be any valid address (0-22). Reading is
not destructive, i.e. values are not changed. The IO
line is output from the MICRF505 (input to user) for a
part of the read-sequence. Refer to procedure
description below.
A read-sequence is described for reading n
registers, where n is number 1-23.
Reading n registers from MICRF505
CS
SCLK
IO
A6 A5 A0
RW
D7 D6
D0
Address of register i RWData read from reg. i
S
imple time
I
O Input
I
O Output
Figure 3.
In the figure, 1 register is read. The address is A6,
A5, … A0. A6 = msb. The data read out is D7, D6,
…D0. The value of the R/W bit is always “1” for
reading.
SCLK and IO together form a serial interface. SCLK
is applied externally for reading as well as for writing.
Bring CS active
Enter address to read from (or the first
address to read from) (7 bits) and
The R/W bit = 1 to enable reading
Make the IO line an input to the user (set pin
in tristate)
Read n octets. The first rising edge of SCLK
will set the IO as an output from the
MICRF505. MICRF will change the IO line at
positive edges. The user should read the IO
line at the negative edges.
Make the IO line an output from the user
again.
Programming interface timing
Figure 4 and Table 6 shows the timing specification for the 3-wire
serial programming interface.
S
CLK
O
A6 A5 A0
RW
D7 D6 D2
D1 D0
Address Register Data Register
LOA
Tlow
tfall
Figure 4.
Values

MICRF505LYML-TR

Mfr. #:
Manufacturer:
Microchip Technology / Micrel
Description:
RF Transceiver
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet