[email protected]  wrote / napĂ­sal(a):
> Hello
> 
> Add T0CON = 0x00 before you configure the timer, according to the
> datasheet T0CON is initialized as 0xff;
Done

> If this failes I'm a little bit clueless why your code doesn't work. In
> your case i would do the following.
> - Take a look in the .map and or complete_program.asm file and see where
> your isr was located.
When You'll take a look below at the .map, isr is located as a normal 
part of code.
Why ????????

> - Try to see with the debugger if the counter reg inkrements to nail
> down wether the problem is with the timer or with the isr configuration.
> 
Increments, TMR0IF set to 1

> Regards

Hello Jan.
Here is the beginning of my .map:

gplink-0.13.6 alpha
Map File - Created 5-23-2009  12:27:20

                                  Section Info
                   Section       Type    Address   Location Size(Bytes)
                 ---------  ---------  ---------  ---------  ---------
           S_crt0i___entry       code   00000000    program   0x000004
        S_crt0i___do_cinit       code   0x00002a    program   0x0000a0
                     .code       code   0x0000ca    program   0x000070
                S_ddd__isr       code   0x00013a    program   0x000068
               S_ddd__main       code   0x0001a2    program   0x00002a
         S_crt0i___startup       code   0x0001cc    program   0x000018
                    .cinit       code   0x0001e4    program   0x00000e
        S_ddd_ivec_0x8_isr       code   0x0001f2    program   0x000004
                  .idata_i       code   0x0001f6    program   0x000002
                   .config       code   0x300000    program   0x00000e
                    .idata      idata   0x000084       data   0x000001
               udata_ddd_0      udata   0x000080       data   0x000004
             stack_section      udata   0x000200       data   0x000100
       ustat_pic18f1220_00      udata   0x000f80       data   0x000002
       ustat_pic18f1220_01      udata   0x000f89       data   0x000002
       ustat_pic18f1220_02      udata   0x000f92       data   0x000002
       ustat_pic18f1220_03      udata   0x000f9d       data   0x000006
       ustat_pic18f1220_04      udata   0x000fa6       data   0x00000e
       ustat_pic18f1220_05      udata   0x000fb6       data   0x000001
       ustat_pic18f1220_06      udata   0x000fbd       data   0x000008
       ustat_pic18f1220_07      udata   0x000fca       data   0x00000a
       ustat_pic18f1220_08      udata   0x000fd5       data   0x00002b

                               Program Memory Usage
                                Start         End
                            ---------   ---------
                             0x300000    0x30000d
                             0x0001f2    0x0001f5
                             0x0001a2    0x0001cb
                             0x00013a    0x0001a1
                             0x0001f6    0x0001f7
                             00000000    0x000003
                             0x00002a    0x0000c9
                             0x0001cc    0x0001e3
                             0x0000ca    0x000139
                             0x0001e4    0x0001f1

                             240 program addresses used

                               Symbols
                      Name    Address   Location    Storage File
                 ---------  ---------  ---------  --------- ---------
                     _tmp0   0x000080       data     extern ddd.c
              ivec_0x8_isr   0x0001f2    program     static ddd.c
                     _main   0x0001a2    program     extern ddd.c
                _00110_DS_   0x0001be    program     static ddd.c
                      _isr   0x00013a    program     static ddd.c
                 ___uflags   0x000084       data     extern 
../build/startup/crt0i.asm
                   __entry   00000000    program     extern 
../build/startup/crt0i.asm
                __do_cinit   0x00002a    program     extern 
../build/startup/crt0i.asm


At the moment I'm going to work, so I'll be off till 23:00.
Thanks for Your help.


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to