Searching \ for '[PIC]: Fun with MPLAB-C18' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/languages.htm?key=mplab
Search entire site for: 'Fun with MPLAB-C18'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Fun with MPLAB-C18'
2004\05\21@082833 by Philip Pemberton

face picon face
Hi,
 I've just been trying to get example1.c (from the MPLAB-C examples pack) to
work on a PIC18F252. Problem is, although the '252 LED flasher hexfile from
http://www.voti.nl will program into the chip (and, crucially, run) fine, the output
hexfile from C18 won't do anything. MPLAB-SIM steps through the compiled C
source OK. I've followed the instructions in the C18 "Getting Started" guide
to the letter :-/
 How do you set the config fuses on an 18F252 using C18? I'm using a WISP628
programmer and the BumbleBee programming software.
 Does anyone have a known-working LED flasher program for C18 lying around
on their HDD that I could use as an example?

Thanks.
--
Phil.                              | Acorn Risc PC600 Mk3, SA202, 64MB, 6GB,
spam_OUTphilpemTakeThisOuTspamdsl.pipex.com              | ViewFinder, 10BaseT Ethernet, 2-slice,
http://www.philpem.dsl.pipex.com/  | 48xCD, ARCINv6c IDE, SCSI
... Be *excellent* to each other

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

2004\05\21@085117 by Wouter van Ooijen

face picon face
>   How do you set the config fuses on an 18F252 using C18?

somthing like

#pragma romdata CONFIG
_CONFIG_DECL(
  _OSCS_OFF_1H & _OSC_HSPLL_1H,
  _PWRT_ON_2L & _BORV_42_2L,
  _WDTPS_128_2H & _WDT_ON_2H,
  _CONFIG3H_DEFAULT,
  _DEBUG_OFF_4L & _LVP_OFF_4L & _STVR_OFF_4L,
  _CP0_ON_5L & _CP1_ON_5L,
  _CPB_OFF_5H & _CPD_OFF_5H,
  _WRT0_ON_6L & _WRT1_ON_6L,
  _WPC_ON_6H & _WPB_ON_6H & _WPD_OFF_6H,
  _EBTR0_OFF_7L & _EBTR1_OFF_7L,
  _EBTRB_OFF_7H );
#pragma romdata

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

More... (looser matching)
- Last day of these posts
- In 2004 , 2005 only
- Today
- New search...