This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Tuesday, October 23, 2007

[oopic] Re: I/O lines of Oopic-C

Thank you, Richard
BR --Mika
--- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
> --- In oopic@yahoogroups.com, "mtiusanen" <mtiusanen@> wrote:
> >
> > Hi,
> > my question is about the iolines in Oopic-C:
> > Where is ioline 1 (and lines 2..7) in oopic-c?
> >
> > The meaning is to use analog input and convert the voltage to value
> > using aA2D8, but...
> > I haven't found the map of those lines in
> > http://www.oopic.com/oopiccn.htm
> > just lines 8..15 and 24..31 respectively. Where are the lines 1..7?
> > If they are the lines A1..A4 at the top of the chip, is the enumeration
> > A1 = I/O line 1, A2 = I/O line 2 etc?
> >
> > What are symbols "21", "T1", "P1" and "P2" standing for?
> >
> > THX /MT
> >
>
> Sometimes you need to bounce back and forth between the OOPic
> schematics and the 16F877A datasheet
> http://ww1.microchip.com/downloads/en/DeviceDoc/39582b.pdf

>
> It is also helpful to look at the R board schematic.
>
> Pins RA0 corresponds to A/D channel AN0, same for RA1-AN1, RA2-AN2,
> RA3-AN3, RA5-AN4, RE0-AN5, RE1-AN6 and RE2-AN7
>
> So, A0..A3 are potentially analog channels and are on the top of the
> package corresponding to AN0..AN3 inputs. Then things fall apart: RA5
> is used to talk to the EEPROM so AN4 is out the window. AN5..7 are
> connected to LEDs on the module so they can't be used without hacking
> the board.
>
> You have 4 analog inputs easily accessible.
>
>
>
> T1 - RC0 - IOLine 16
> P1 - RC1 - IOLine 17
> P2 - RC2 - IOLine 18
> 21 - RC5 - IOLine 21
>
> These 4 IOLines can be used as general purpose IO but they also have
> special functions.
>
> T1 is the external clock input for oTimer
> P1 is used with oPWM when the IOLine property is set to 1
> P2 is used with oPWM when the IOLine property is set to 0
> 21 is used with oFreq to output a high frequency square wave
>
> Because RA5 is used to drive the EEPROM, you can only have 7 A/D
> inputs even in the case of the S board (or just the 40 pin chip). Both
> the C module and R board have LEDs connected to the upper 3 A/D
> channels so they have just 4 A/D inputs without hacking.
>
> Richard
>


Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/oopic/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/oopic/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

No comments: