mr ACETRONICS : thanks for the sample.
Here is my code ( I am using MPLAB IDE v 8.0, just downloaded from MicroPic ),
which says basically the same : a value for configuration bits.
My question was if that line ( config OSC=XT ) is enough at run time,
as I see it does NOT generate any code, and we want position 0x300001 to have a 0x25, don't we ?
Thanks for the "IMPORT HEX FILE" trick.
It looks like "config OSC=XT" does generate the code !
Maybe it is this line in the HEX file :
:0100010021DD
In some (strange) way, the first "01" shall say "0x300000", the next "00001" selects "0x300001", then the data is "0021" hex, and 0xDD must be some kind of checksum ...
Ramon.
================================================== =============
;
; primer programa ASM del PIC
;
; Conectar el pin 5 (RA3) a R=1 K cap al Anode del LED.
; XTAL 4 MHz entre pin 13 i 14.
; 2x C (22pf) del pin 13 i 14 a massa.
; list p=16f452
#include <p18f452.inc>
; Configuration bits :
;
; Oscillator mode := XT ;
; Watch Dog Timer := off ;
; Low Voltage Programming := on :
config WDT=OFF
config OSC=XT
; User data
===================================
> type FLED.hex
:020000040000FA
:0400000080EF00F09D
:08000800D59EF2942190110035
:0400180020EF00F0E5
:02002A000000D4
:10004000D8CF23F0E8CF24F0E0CF22F022C0E0FFA9
:0A00500024C0E8FF23C0D8FF100011
:100100000F01936A816A926A806A0F01F28EF28A05
:10011000550E806E92EC00F0AA0E806E9CEC00F002
:1001200088EF00F0F00ED66E216A2180C80ED56EE1
:1001300021B098EF00F01200FF0E206E202E9EEFEF
:1001400000F012005555AAAA320C320C2F0C300CBC
:10015000340C2F0C320C300C300C380C2C0C200CC6
:10016000760C200C310C2E0C320C610C5555AAAAC1
:020000040030CA
:0100010021DD
:010003000EEE
:00000001FF
Bookmarks