Common Questions & Answers
+
-
*
/
exp()
ln()
sin()
0.6
0.6
11.1
23.2
*
*
*
1.4
1.4
47.2
70.8
*
*
*
3
3
132
239.2
*
*
*
111.
113.
178.
330.
1697.3
2017.7
2184.5
40 mhz PIC18
int8 [us]
int16 [us]
int32 [us]
float [us]
+
-
*
/
exp()
ln()
sin()
0.3
0.3
0.4
11.3
*
*
*
0.4
0.4
3.2
32
*
*
*
0.6
0.6
22.2
106.6
*
*
*
51.3
52.3
35.8
144.9
510.4
644.8
698.7
Instead of 800, the compiler calls 0. Why?
The PIC? ROM address field in opcodes is 8-10 Bits depending on the chip and specific
opcode. The rest of the address bits come from other sources. For example, on the 174 chip to
call address 800 from code in the first page you will see:
BSF
CALL
0A,3
0
The call 0 is actually 800H since Bit 11 of the address (Bit 3 of PCLATH, Reg 0A) has been set.
Instead of A0, the compiler is using register 20. Why?
The PIC? RAM address field in opcodes is 5-7 bits long, depending on the chip. The rest of the
address field comes from the status register. For example, on the 74 chip to load A0 into W you
will see:
BSF 3,5
MOVFW
20
Note that the BSF may not be immediately before the access since the compiler optimizes out
the redundant bank switches.
What can be done about an OUT OF RAM error?
335
相关PDF资料
PCI-EXP-T42G5-N1 IP CORE PCI EXPRESS ORCA 4
PCM18XH2 PROCESSOR MODULE MPLAB-ICE 2000
PCM18XN0 PROCESSOR MODULE FOR ICE2000
PDA-B-24-615-E-2B1-1-C CIRCUIT BREAKER MAG 1P 15A
PFMF.260.2 PFMF PTC FUSE SMT 2.6A 1812
PFNF.200.2 PFNF PTC FUSE SMT 2A 1206
PFRY.375 PTC-FUSE RADIAL 72 VDC
PFSM.150.33.2 FUSE PTC 8A 15V FST-TRIP SMD
相关代理商/技术参数
PCD_09 制造商:MACOM 制造商全称:Tyco Electronics 功能描述:Low Profile PCB Relay PCD
PCD-00173-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0E 制造商:Molex 功能描述:Ethernet Cable Assembly
PCD-00173-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0K 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00174-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Red; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet ;RoHS Compliant: NA
PCD-00174-0E 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Grey; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet;RoHS Compliant: NA
PCD-00174-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY