Olin Lathrop wrote: > David Duffy (AVD) wrote: > =20 >> I'm using assembler in absolute mode to start with. >> =20 > > Yucc, don't do that. If you need instant gratification, then forget abou= t > microcontrollers. Learn to set up a relocatable project and don't look > back. Too many people get stuck in the trap of learning with absolute mo= de, > then never wanting to make the perceived jump to relocatable mode. > Relocatable mode is nothing to be afraid of, and is important once you do= a > real project. > =20 Hi Olin, I've only ever used absolute mode and I'm well aware of your disdain for=20 it. :-) I do actually intend to move to relocatable code. There's a lot to be=20 said for learning in increments, making changes to only one thing (chip,=20 method, etc) at a time. >> That produces nothing from the LEDs, >> =20 > > Of course it won't. As the manual clearly states (and as is customary wi= th > all PICs), all pins wake up in high impedence state to the extent they ca= n. > =20 Yes, I understand this. In this respect, the 18 series is no different=20 to the 12 and 16 series I've used before. > Writing values to the port registers isn't going to have any effect until > you set the pins to outputs. At the very least this means clearing the T= RIS > bits, but may also require disabling analog peripherals associated with t= he > pins of interest. Just writing 0 then some value to the port registers h= as > no chance of producing a visible result without making pins outputs. > =20 This is probably where I'm missing something. The structure of the=20 ports is obviously different to what I'm used to. I did read the data=20 sheet, but have not yet got a grip on how the port really work. This is one reason I asked about a very simple working assembler file. =20 I'm sure you're a clever guy, but some of us need some help from time to=20 time. David... --=20 ___________________________________________ David Duffy Audio Visual Devices P/L Unit 8, 10 Hook St, Capalaba 4157 Australia Ph: +61 7 38235717 Fax: +61 7 38234717 Our Web Site: www.audiovisualdevices.com.au ___________________________________________ --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .