18F25K22 what works for me

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
ciseco
Posts: 15
Joined: Mon Mar 21, 2011 6:31 pm
Location: UK

18F25K22 what works for me

Post by ciseco » Fri Apr 08, 2011 11:21 am

Many thanks to everyone who assisted with getting me on the right track for the K22.

I thought it might be useful to post up what works for me.

Version 2.2.0.3 of the IDE

These two files

http://www.ciseco.co.uk/downloads/PIC%2 ... F25K22.bas

http://www.ciseco.co.uk/downloads/PIC%2 ... F25K22.inc

Put them in

Windows XP - c:\program files\mecanique\swordfish\includes\

Windows Vista & 7 - c:\users\all users\mecanique\swordfish\includes\ (HINT: windows often hides this folder, cut and paste the path instead of browsing to it.)

That should be it.

Here's a blinky to test

‘ BLINK LED
Device = 18f25k22
Clock = 16

Main:
High(PORTB.6)
DelayMS (500)
Low(PORTB.6)
DelayMS (500)
GoTo main



Miles
Ciseco plc - www.ciseco.co.uk

Low cost development hardware and software for building embeded prototypes and wireless sensor networks.

gramo
Registered User
Registered User
Posts: 200
Joined: Tue Mar 20, 2007 6:55 am
Location: Australia
Contact:

Post by gramo » Sat Apr 09, 2011 8:17 am

Cheers Miles
digital-diy.com - Hobby microcontroller projects and tutorials. Assembly, PICBasic and C examples.

Australian distributor for the Swordfish Compiler

Post Reply