Hi Robert Robert It was a very good idea. I found my problem. The DBGSEL Pin was high, so it didnt work. Thanks Sen At 12:11 PM 2/4/04 +0100, you wrote: >Hallo, >Thanks for your effort > >Its a pity, but it doesnt work >I watched the pins 26 and 27 -> they didnt toggle. That probably makes sense. >Then I changed the code as I need (0xC00000C to 0xC000000C) and pin 30 >and 31 didnt toggle too. > >Regards Sen > >PS: these two tings are defined in my LPC2100_addr.h. It's a comfortable >way, to access Registers. >// helper macro to write to a memory mapped register >#define REG(addr) (*(volatile unsigned long *)(addr)) > >#define PCB_PINSEL0 (0xE002C000) /* pin function sel reg 0 */ >#define PCB_PINSEL1 (0xE002C004) /* pin function sel reg 1 */ > >So I can use it like this: REG(PCB_PINSEL1) &= ~(0xF0000000); That looks OK. (I'm more used to seeing something like #define PINSEL0 (*(volatile unsigned int *)(0xE002C000)) or extern unsigned int PINSEL0; where PINSEL0 in the second case is defined by the compiler, the library or somewhere else in the link path.) I just tested an an example here and it works just fine, but before I offer to post it, I have one other thought. Do you, by any chance, have the JTAG interface turned on? If so that would explain why you weren't seeing any toggles. Robert " 'Freedom' has no meaning of itself. There are always restrictions, be they legal, genetic, or physical. If you don't believe me, try to chew a radio signal. " Kelvin Throop, III Yahoo! Groups Links To |
GPIO - Pins
Started by ●February 3, 2004
Reply by ●February 4, 20042004-02-04