Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 1st November 2007, 04:24 PM   (permalink)
Default Sometimes, I really hate PIC

I'm using PIC for my tech project, right, and it's really annoying me...I had five proceedures but that was 270% of the memory...i got rid of the only two I can (also the largest two) so my project still kinda works as I want but it's 112% of the effing memory...girl in serious need of help here...
__________________
Two Sides...
...An Endless War...
Four Children to end it all...
Will They be ready?
Welcome to the world of the Elementalists
Go here to enter
Hanxa is offline  
Old 1st November 2007, 04:31 PM   (permalink)
Default

Quote:
Originally Posted by Hanxa
I'm using PIC for my tech project, right, and it's really annoying me...I had five proceedures but that was 270% of the memory...i got rid of the only two I can (also the largest two) so my project still kinda works as I want but it's 112% of the effing memory...girl in serious need of help here...
hi,
Like to help, but we need more input!

Whats the project, whats the PIC type

What language do you write your programs with?
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Old 1st November 2007, 04:32 PM   (permalink)
Default

LOL, You write bad code or your project is far too ambitious.

How do you know your finished code takes 270% of the memory? You just wrote all of it and expected it to work?

Post some more information and we may be able to help.

Mike.
Pommie is offline  
Old 1st November 2007, 04:35 PM   (permalink)
Default

i know it took up 270% coz the memory bar in the corner told me so.

Ask my school what the eff I'm using...and as far as I can tell, I'm writing in English... (PIC Logicator or some sh*t like that)
__________________
Two Sides...
...An Endless War...
Four Children to end it all...
Will They be ready?
Welcome to the world of the Elementalists
Go here to enter
Hanxa is offline  
Old 1st November 2007, 04:39 PM   (permalink)
Default

Quote:
Originally Posted by Hanxa
i know it took up 270% coz the memory bar in the corner told me so.

Ask my school what the eff I'm using...and as far as I can tell, I'm writing in English... (PIC Logicator or some sh*t like that)
Are you really asking for help or do you just want to gripe!
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Old 1st November 2007, 04:50 PM   (permalink)
Default

I know you will fail coz the writing above told me so. LOL.

Mike.
Pommie is offline  
Old 1st November 2007, 06:01 PM   (permalink)
Default

I'm using English as well. Anyone uses machine code directly?
__________________
Superman returns..
bananasiong is offline  
Old 1st November 2007, 06:38 PM   (permalink)
Default

The OP mentioned PIC Logicator.

Did some digging and found

http://www.fischertechnik.com/html/Economatics.htm

If I understand it right the user draws a flowchart and the Logicator software generates code.

Computer generated code could use up a lot of memory.

The OP should direct his ill will at the Logicator software rather then the PIC or PICAX...

EDIT:
Could also be that the instructor used a quick start tool. Students are running without knowing how to walk.

Last edited by 3v0; 1st November 2007 at 06:42 PM.
3v0 is online now  
Old 1st November 2007, 09:07 PM   (permalink)
Default

In the many years I've been using PICs I've found that almost without exception (and always read the Microchip Errata sheets) that anytime a PIC program crashed or was simply unreliable was because of some I did wrong.
A well designed PIC device will pretty much run forever, I had an old 16C54 running continuously for years.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 1st November 2007, 09:15 PM   (permalink)
Default

I wish I could program the pic in english - it would be much simpler
Line 1: Write hello world to the lcd
gregmcc is offline  
Old 1st November 2007, 09:28 PM   (permalink)
Default

Quote:
Originally Posted by gregmcc
I wish I could program the pic in english - it would be much simpler
Line 1: Write hello world to the lcd
You simply have to learn to speak PIC instead.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 1st November 2007, 11:03 PM   (permalink)
Default

Actually, high level language like PIC C or PIC BASIC is very much like English isn't it?
__________________
May the force be with you.


My project: Simple White Line Follower

http://au.youtube.com/watch?v=8Z_MmrdH4oc

http://i271.photobucket.com/albums/j...nefollower.jpg
Wingmax is offline  
Old 2nd November 2007, 12:44 AM   (permalink)
Default

Even a simple nop is No OPeration, that is English too
__________________
Superman returns..
bananasiong is offline  
Old 2nd November 2007, 01:47 AM   (permalink)
Default

gregmcc:
You can for its call MACRO.

Hanxa:
Microcontroller Code overflow is no different than the overflow of anything else in the world. Its not a leakage. Its a spill. Leakages are the fault of the container. Spills are the fault of the fillers. If 4K, 8K, 16K, 32K, or 64K does not suffice, time to break down an communicate with your chip at the chip level which is magnitudes of order and ever increasingly more efficient and compact than the programmers level.


Speaking in the collective conscious of the PIC spirit:
"I wish these humans would stop and look before just haphazardly dumping crap down our throats" - Collective PIC Spirit.
donniedj is offline  
Old 2nd November 2007, 02:05 AM   (permalink)
Default

Quote:
Originally Posted by 3v0
If I understand it right the user draws a flowchart and the Logicator software generates code.

Computer generated code could use up a lot of memory.

The OP should direct his ill will at the Logicator software rather then the PIC or PICAX...
My thoughts exactly. OP really hates Logicator's code.
Yes people write is assembly. All the time.
A lot of people write C.

Hint: Using float type is outrageously slow and makes the code larger. And virtually nobody needs it, even though all the new guys think they do.
__________________
I thought what I'd do was I'd pretend I was one of those deaf-mutes.
Oznog is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Best Pic Basic Compiler ... simrantogether Micro Controllers 12 29th October 2007 08:52 AM
High ADC sampling rate PIC, 18F needed? bananasiong Micro Controllers 24 28th October 2007 01:13 PM
Battery Tester with a PIC 16F818 Cicuit Question dmarciano Micro Controllers 1 9th October 2007 05:41 AM
Battery Tester with a PIC 16F818 Cicuit Question dmarciano Micro Controllers 1 9th October 2007 04:55 AM
Four PIC with One LCD.. meera83 Micro Controllers 13 20th September 2007 07:40 AM



All times are GMT. The time now is 09:38 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker