Hi
if you look at the projects page you will see two, three projects all about pic micro and relay switching with full coding, flow charts, pcb design the lot
This should explain everything you need to know
The rest you will find in datasheets on the micro
There are stacks of articles on the net regards this subject as well
http://www.eeweb.com/project/mark_harrington/single-pic-micro-single-shot-bi-stable-relayhttp://www.eeweb.com/project/mark_harrington Also go and have a look at my own site link above
www.harrington.force9.co.uk
Best of luck with this Its not difficult just needs a little bit of effort
Finally dont you think it might just be a fraction over the top to be using an pic18fxxx device for a hairdryer? ? Just slightly waste full when you could use a far simpler smaller device Yes No hmmm
And how do you make the port an output or input then, well I never, trisb, trisa,trisc
OR
I thought the fsr's or indirect addressing
Would you also just believe that micro chip actually supply datasheets which tell's you how to do this with worked code examples in assembler
Gosh isnt that nice of them
Would you also believe they even supply a free ide with instructions too and a free compiler
Yee gods, so they do too
The stress that you must be experiancing is, well, it must be enormous
Here have a disprin
Poor old chap
Im wondering if Emu might give me a bit of inspiration Should I bury my head in the sands should I possibly develop the hump and become a camel