Electronic Components Datasheet Search
  English  ▼

X  

MCP19124 Datasheet(PDF) 70 Page - Microchip Technology

Part # MCP19124
Description  Digitally-Enhanced Power Analog Synchronous Low-Side Dual-Loop PWM Controller
PDF  236 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

MCP19124 Datasheet(HTML) 70 Page - Microchip Technology

Back Button MCP19124 Datasheet HTML 66Page - Microchip Technology MCP19124 Datasheet HTML 67Page - Microchip Technology MCP19124 Datasheet HTML 68Page - Microchip Technology MCP19124 Datasheet HTML 69Page - Microchip Technology MCP19124 Datasheet HTML 70Page - Microchip Technology MCP19124 Datasheet HTML 71Page - Microchip Technology MCP19124 Datasheet HTML 72Page - Microchip Technology MCP19124 Datasheet HTML 73Page - Microchip Technology MCP19124 Datasheet HTML 74Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 70 / 236 page
background image
MCP19124/5
DS20005619A-page 70
 2016 Microchip Technology Inc.
10.1.1
READING PROGRAM MEMORY
AS DATA
There are two methods of accessing constants in
program memory. The first method is to use tables of
RETLW
instructions. The second method is to set a
Files Select Register (FSR) to point to the program
memory.
10.1.1.1
RETLW Instruction
The RETLW instruction can be used to provide access
to the tables of constants. The recommended way to
create such tables is shown in Example 10-1.
EXAMPLE 10-1:
RETLW INSTRUCTION
The BRW instruction makes this type of table very
simple to implement. If your code must remain portable
with previous generations of microcontrollers, then the
BRW
instruction is not available, so the older table-read
method must be used.
10.2
Data Memory Organization
The data memory (refer to Figure 10-1) is partitioned
into four banks, which contain the General Purpose
Registers (GPR) and the Special Function Registers
(SFR). The Special Function Registers are located in
the first 32 locations of each bank. Register locations
20h-7Fh in Bank 0, A0h-EFh in Bank 1, 120h-16Fh in
Bank 2 and 1A0h-1EFh in Bank 3 are General Purpose
Registers, implemented as static RAM. All other RAM
is unimplemented and returns ‘0’ when read. The
RP<1:0> bits in the STATUS register are the bank
select bits.
EXAMPLE 10-2:
BANK SELECT
To move values from one register to another register,
the value must pass through the W register. This
means that for all register-to-register moves, two
instruction cycles are required.
The entire data memory can be accessed either
directly or indirectly. Direct addressing may require the
use of the RP<1:0> bits. Indirect addressing requires
the use of the FSR. Indirect addressing uses the
Indirect Register Pointer (IRP) bit in the STATUS
register for access to the Bank0/Bank1 or the
Bank2/Bank3 areas of data memory.
10.2.1
GENERAL PURPOSE REGISTER
FILE
The register file is organized as 64 x 8 in the
MCP19124/5. Each register is accessed, either directly
or indirectly, through the FSR (refer to Section 10.5
“Indirect Addressing, INDF and FSR Registers”).
constants
BRW
;Add Index in W to
;program counter to
;select data
RETLW DATA0
;Index0 data
RETLW DATA1
;Index1 data
RETLW DATA2
RETLW DATA3
my_function
;… LOTS OF CODE…
MOVLW
DATA_INDEX
call constants
;… THE CONSTANT IS IN W
RP1
RP0
00
 Bank 0 is selected
01
 Bank 1 is selected
10
 Bank 2 is selected
11
 Bank 3 is selected



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


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