Os motores de busca de Datasheet de Componentes eletrônicos
  Portuguese  ▼
ALLDATASHEETPT.COM

X  

H8/3021 Folha de dados(PDF) 64 Page - Renesas Technology Corp

Nome de Peças H8/3021
Descrição Electrónicos  16-Bit Single-Chip Microcomputer
PDF  712 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrônico  RENESAS [Renesas Technology Corp]
Página de início  http://www.renesas.com
Logo RENESAS - Renesas Technology Corp

H8/3021 Folha de dados(HTML) 64 Page - Renesas Technology Corp

Back Button H8/3021 Datasheet HTML 60Page - Renesas Technology Corp H8/3021 Datasheet HTML 61Page - Renesas Technology Corp H8/3021 Datasheet HTML 62Page - Renesas Technology Corp H8/3021 Datasheet HTML 63Page - Renesas Technology Corp H8/3021 Datasheet HTML 64Page - Renesas Technology Corp H8/3021 Datasheet HTML 65Page - Renesas Technology Corp H8/3021 Datasheet HTML 66Page - Renesas Technology Corp H8/3021 Datasheet HTML 67Page - Renesas Technology Corp H8/3021 Datasheet HTML 68Page - Renesas Technology Corp Next Button
Zoom Inzoom in Zoom Outzoom out
 64 / 712 page
background image
2. CPU
Rev.2.00 Mar. 22, 2007 Page 40 of 684
REJ09B0352-0200
2.6.5
Notes on Use of Bit Manipulation Instructions
The BSET, BCLR, BNOT, BST, and BIST instructions read a byte of data, modify a bit in the
byte, then write the byte back. Care is required when these instructions are used to access registers
with write-only bits, or to access ports.
Step
Description
1
Read
Read one data byte at the specified address
2
Modify
Modify one bit in the data byte
3
Write
Write the modified data byte back to the specified address
Example 1: BCLR is executed to clear bit 0 in the port A data direction register (PADDR) under
the following conditions.
PA7, PA6:
Input pins
PA5 – PA0:
Output pins
The intended purpose of this BCLR instruction is to switch PA0 from output to input.
Before Execution of BCLR Instruction
PA7
PA6
PA5
PA4
PA3
PA2
PA1
PA0
Input/output
Input
Input
Output
Output
Output
Output
Output
Output
DDR
0
0
1
1
1
1
1
1
Execution of BCLR Instruction
BCLR
#0, @PADDR
;Clear bit 0 in data direction register
After Execution of BCLR Instruction
PA7
PA6
PA5
PA4
PA3
PA2
PA1
PA0
Input/output
Output
Output
Output
Output
Output
Output
Output
Input
DDR
1
1
1
1
1
1
1
0
Explanation: To execute the BCLR instruction, the CPU begins by reading PADDR. Since
PADDR is a write-only register, it is read as H'FF, even though its true value is H'3F.
Next the CPU clears bit 0 of the read data, changing the value to H'FE.



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 97 98 99 100  ...More


Folha de dados Download

Go To PDF Page


Ligação URL



ALLDATASHEET é útil para você?  [ DONATE ] 

Sobre Alldatasheet   |   Publicidade   |   Contato conosco   |   Privacy Policy   |   Link para a ficha técnica    |   roca de Link   |   Lista de Fabricantes
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