Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

C and Assembly

Status
Not open for further replies.
I no that But you can do what you call a Quick Build where you don't use the wizard. and you would need that
#include <PIC16F627A.h>
or it wouldn't build
 
lol i reinstalled and no go but then i just decided to check if it was running in background and it was so i closed it and now i get:

Code:
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\SourceBoost\boostc.pic16.exe" test.c -O1  -W1  -t 16F627A
BoostC Optimizing C Compiler Version 6.92 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2009 Pavel Baranov
Copyright(C) 2004-2009 David Hobday

Single user Lite License (Unregistered) for 0 node(s)
Limitations: PIC12,PIC16 max code size:2048 words, max RAM banks:2, Non commercial use only


test.c

success
Executing: "C:\Program Files\SourceBoost\boostlink.pic.exe"  "C:\16F\test.obj" "C:\Program Files\SourceBoost\Lib\libc.pic16.lib" -O1  -p "test" -t 16F627A
BoostLink Optimizing Linker Version 6.92
http://www.sourceboost.com
Copyright(C) 2004-2009 Pavel Baranov
Copyright(C) 2004-2009 David Hobday


Optimisation level:1
Building CASM file

Memory Usage Report
===================
RAM available:224 bytes, used:0 bytes (0.0%), free:224 bytes (100.0%), 
Heap size:176 bytes, Heap max single alloc:95 bytes
ROM available:1024 words, used:10 words (1.0%), free:1014 words (99.0%)


success
Loaded C:\16F\test.COF.
BUILD SUCCEEDED: Sat Feb 28 23:25:21 2009
 
how come this turns on a LED but doesnt blink it ?
Code:
#include <system.h>
#include <PIC16F627A.h>
#pragma CLOCK_FREQ 4000000
#pragma DATA _CONFIG, _INTOSC_OSC_NOCLKOUT & _WDT_OFF & _LVP_OFF

void main()
{
    trisa = 0x00;
    cmcon = 0x07;

    while(1){
        porta.1 = 1; 
        delay_ms(250);
        delay_ms(250);
        porta.1 = 0; 
    }
}
 
Why would you want to do that (grin)?

:) It's for folks like me who don't much care for IDEs and find that mousing around hunting for dialogue boxes just wastes time.

Not that I think that's a better or more hard-core way to do it or anything; I am just more comfortable on the command line in general. That said, I do run Compiz on Linux with all the bells and whistles turned up to 11. It's my dichotomy and I'm stickin' to it. :)


Torben
 
Last edited:
I keep reading this post And I"m quitting swordfish basic and going back to C
 
Jason,

You have the two delays together.

Try,
Code:
    while(1){
        porta.1 = 1; 
        delay_ms(250);
        porta.1 = 0; 
        delay_ms(250);
    }
}

Mike.
 
I haven't used windows in years till I started picking most tools for linux that I have found are old I would like it better to use just linux
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top