config help please?


Results 1 to 12 of 12

Threaded View

  1. #1
    Join Date
    Mar 2008
    Posts
    79

    Default config help please?

    Hi all, and before I go any further I want to say thanks to everyone who has helped me before
    The previous problem I had about trying to work a serial LCD, I've left that to one side for the moment, however for now... could anyone would be so kind as to look over my code and tell me what they see as obvious ( and not so obvious) mistakes.
    The bits I'm not sure about is the config fuses/settings. I'm going to make a seperate mini board to plug a pickit 2 into with basically a 5v psu, 18 pin socket and the pic and any other bits needed like diode, resistor etc.
    So ALL the programming will be done OFF the main board and all pins are being used as inputs or outputs only! (All digital)

    Ra2
    RA3
    RA4
    RA5 are ALL inputs (digital)

    RA1
    RA0 outputs to transistor switches
    RB6
    RB7 Outputs to LED's
    so basically all pins are outputs apart from ra2,3,4 and 5 which are inputs.

    the pic will be a 16F88
    2 X DS18B20 dq from each going to 2 seperate pins ( porta.4 and porta.5 )
    LCD 4 bit mode
    RS is on portB0
    E is PORTB1
    Data pins PORTB.2 LCD D7
    Data pins PORTB.3 LCD D6
    Data pins PORTB.4 LCD D5
    Data pins PORTB.5 LCD D4

    Really not sure about ALSO the bits parked with ****** in the code i.e. ansel adcon trisa trisb and so on, (or the config fuses) it will be using an 8Mhz ceramic resonator as thats what I've got handy
    The other thing I'm not sure about is the actual DS18B20's I dont know if I can have 2 each on a different port and address them as I have done, and IF I can,
    How do I set this? DS18B20_12bit CON %01111111 ; 750ms, 0.0625°C resolution?
    Sorry it wouldn't let me attach it as code (too big)
    Attached Files Attached Files

Similar Threads

  1. Run-Time Config
    By Darrel Taylor in forum PBP Extensions
    Replies: 1
    Last Post: - 1st February 2012, 16:26
  2. A/D conversion with PIC18F67J50
    By ScaleRobotics in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th May 2009, 01:48
  3. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  4. Error 0X0000008E when connecting a 18F2550 USB HID
    By FranciscoMartin in forum USB
    Replies: 8
    Last Post: - 16th October 2008, 17:20
  5. Installation sequence
    By Demon in forum General
    Replies: 23
    Last Post: - 11th July 2006, 03:56

Members who have read this thread : 1

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