PORTA Logic - Be the processor


Closed Thread
Results 1 to 30 of 30

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    I can see a lot of really nifty tutorials with your Flash gadgets. Very cool stuff.

    This reminds me of the Microchip eLearning Flash-based training modules. Nice work
    DT. P.S. I had a 145 just before this one, but thought I could beat it. Didn't happen...;o}
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    This reminds me of the Microchip eLearning Flash-based training modules.
    Sounds interesting. I'd like to see those.
    Can't seem to find them though. Google let me down?

    DT. P.S. I had a 145 just before this one, but thought I could beat it. Didn't happen...;o}
    Uh huh, suuure you did ...
    My next one will impose a 10pt handicap for anyone with Bruce in their username.
    not
    DT

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Here's the link to Microchips flash training modules; http://techtrain.microchip.com/x14/
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Thumbs up Thanks Bruce!

    Those are pretty interesting.
    Gives me a few ideas too.

    DT

  5. #5


    Did you find this post helpful? Yes | No

    Default I/O Woes on 18F4420

    Your game was fun, I got a 109 (better hit the books again)

    I have been migrating an application from a 16F887 to a 18F4420. After some debug (few hardware issues - oops!) the two output ports are doing great (B & D). Thanks to you Darrel my Timer 01 interupt is clicking away. I was able to change the config1h register to use the 4x PLL oscillator. But I am having trouble getting my input ports (A & E ) to function (very ashamed )
    Oddly enough, there is one bit of the A port that works (bit 4). The rest of inputs on port A and E ignore me. Hardware check of pins show normal (pulled to Vdd via resistor with contact closure dragging them to Vss when applied)

    Below is the I/O setup from my program:
    ================================================== ======
    ' ~~~~~~~~~~~~~~~~~~~ Define A I/O Port and Define Analog I/O ~~~~~~~~~~~~~~~~~~~
    PORTA = %00000000 ' clearing bits as recommended in data sheet
    ADCON0 = %00000000 ' turn off all A/D
    ADCON1 = %00000111 ' turn off all A/D I/O points - make digital
    TRISA = %00111111 ' bits 0-5 declared as inputs

    ' ~~~~~~~~~~~~~~~~~~~ Define B I/O Port ~~~~~~~~~~~~~~~~~~~
    TRISB = %00000000 ' bits 0 declared as output


    ' ~~~~~~~~~~~~~~~~~~~ Define C I/O Port ~~~~~~~~~~~~~~~~~~~
    PORTC = %00000000 ' clearing bits as recommended in data sheet
    TRISC = %11110000 ' bits 4,5,6,7 defined as inputs
    ; LATC = %00000000 ' bits 0,1,2,3 declared as output

    ' ~~~~~~~~~~~~~~~~~~~ Define D I/O Port ~~~~~~~~~~~~~~~~~~~
    TRISD = %00000000 ' bits 0-7 declared as output
    ; LATD = %00000000

    ' ~~~~~~~~~~~~~~~~~~~ Define E I/O Port ~~~~~~~~~~~~~~~~~~~
    PORTE = %00000000 ' clearing bits as recommended in data sheet
    TRISE = %00000111 ' bits 0,1,2 declared as inputs
    ' bits 3-7 declared as output
    ' to prototype Application inputs
    ================================================== ======

    Does this look as you would expect? Got any other areas you would recommend I check - I think I am close to being able to recite the 18FXX2 data sheet, but it doesn't mean I might be overlooking something.

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Try ADCON1 = %00001111. Deduct 1 point from your score...;o}
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  7. #7


    Did you find this post helpful? Yes | No

    Default Many thanks

    Wow Bruce you are correct! But did I miss an errata sheet or is my trouble reading the table in the attached document
    ---------------------------------------------------------------------------
    In any event I am back in the running. I owe you for this. You can take five of my points and add to your score.

    Thanks again
    Attached Files Attached Files

Similar Threads

  1. Cant change target processor to compile
    By ozarkshermit in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th November 2009, 18:31
  2. Replies: 0
    Last Post: - 2nd February 2009, 23:23
  3. PIC's ports individual bits manipulation - how to?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 38
    Last Post: - 27th February 2007, 22:34
  4. 16f876 PortA set-up trouble?
    By ronjodu in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2006, 19:31
  5. Can anyone help a beginner in a struggle?
    By douglasjam in forum mel PIC BASIC
    Replies: 1
    Last Post: - 5th May 2005, 23:29

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts