PICcoder.co.uk Forum  


::post new topic::
18F87J50
Date: 2008/02/28 15:08 By: Nevalon Status: Visitor  
 
Hi.

First of all - thanks for Your work

I'm trying to implement Your code on PIC18F87J50.
For now I'm thinking about conception how to do it, may You tell me what You think about it?

The board and PIC will have their own power, I need PIC circuit running no matter it is connected to the PC or not. PC application will collect informations from PIC only.

I looked at Your code and I don't really know (maybe I only don't understand - I'm not an electronic, i'm programmist, and in addition my English is not very good - I'm from Poland) do I need USE_SELF_POWER_SENSE_IO defined? I know I need USE_USB_BUS_SENSE_IO defined because of USB protocol and I understand (or am I wrong?) that when signal on Vusb from PC-host arrives (it should be connected to Vusb pin and RA1 pin, shouldn't it?) the resistor 4.7k delays it before it arrives to RA1 and after it arrives to RA1 (not to Vusb, on which the signal will be earlier) the USB procedures on PIC will start.

If I understand OK tell it, if not - correct me please.

And some questions:
1. "Self power" means internal (just from US or external power source?
2. Why do I need RA2 input when it is self powered? Neighter on schematics nor in text below we have no connection to this pin.
3. May I have USB connection with PC and USART connection with other PIC?
4. Do I need any changes in code for migrate from 4550 to 87J50? I just changed Device in MPLAB and linker for proper...
reply | quote

::post new topic::