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
 
Tools
Old 6th November 2008, 02:13 AM   #16
Default

Quote:
Originally Posted by futz View Post
Replace the pic.h header line in your program with the system.h one.
i get this one..

is it like this
Code:
#pragma CLOCK_FREQ 4000000
#pragma DATA 0x2007, 0x184
#include <system.h>
Quote:
Originally Posted by futz View Post
Then you'll have to make some other changes to suit differences in how the two compilers name things like registers, and how they access bits in registers.
i dont know about this can u help me..

Last edited by pysch; 6th November 2008 at 03:09 AM.
pysch is offline  
Old 6th November 2008, 12:30 PM   #17
Default

Quote:
Originally Posted by pysch View Post
can someone convert these code to asm and hex...
i dont think i'm capable to do this anymore...
i've trying for a month and using many compilers...
and i have to send this thing on 8/11..
You're supposed to complete your own school assignments else how are you learning anything if someone does it for you?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is offline  
Old 6th November 2008, 01:27 PM   #18
Default

i'm sorry for my stupid reply before..
kinda lose hope in doing something i dont know much..

as futz were saying that my header were wrong...
i already know the clock..
what about the config??
what the use of it..
could u help me..
pysch is offline  
Old 6th November 2008, 03:28 PM   #19
Default

Quote:
Originally Posted by pysch View Post
could u help me..
You'll find quite a bit of simple "example" BoostC code at my web-site. With that and the BoostC manual you should be able to figure out the changes to make.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================
futz is offline  
Old 6th November 2008, 03:41 PM   #20
Default

Quote:
Originally Posted by pysch View Post
i get this one..

is it like this
Code:
#pragma CLOCK_FREQ 4000000
#pragma DATA 0x2007, 0x184
#include <system.h>
i dont know about this can u help me..
People here don't mind helping, but I don't think anyone will do your work for you.

The clock frequency and included header look correct.

The config settings are done differently in SB. For example:
Quote:
#pragma DATA _CONFIG, _XT_OSC & _WDT_OFF & _CP_OFF & _PWRTE_OFF
Much easier than using a hex number and having to look up which bits are being set or reset in the data sheet.

You should start by reading this thread:
"pic Micro Programming In Boostc For Beginners" - SourceBoost support forum

I'd try a simple exercise like blinking an LED first to make sure you have it right, then go on with your project.

When you have some questions, come back and get some help, or sign up to the SourceBoost forums, and get some help there too.

You have a couple of days left, if you work hard, you can do it.

Edit:
Sorry futz, I should have thought about your excellent site! Great advice pysch, take it.

Last edited by BeeBop; 6th November 2008 at 03:42 PM.
BeeBop is online now  
Old 6th November 2008, 06:00 PM   #21
Default

Quote:
Originally Posted by Leftyretro View Post
You had a hex keypad? We started with 16 individual front panel toggle bit switches in the early minicomputer days
I know... that is what I learned on... I did however own a museum piece-a DEC PDP11...a 12" rack for the CPU with 2 8K core cards, a 12" 1M platter, and of course the 16 panel switches to toggle in the boot loader. I even had all the schematics!
Ubergeek63 is offline  
Old 6th November 2008, 06:01 PM   #22
Default

Quote:
Originally Posted by pysch View Post
i dont know how to make it by hand.....
Actually that was a little joke. I would not expect anyone to do it by hand.
Ubergeek63 is offline  
Old 6th November 2008, 06:29 PM   #23
Default

Quote:
Originally Posted by Ubergeek63 View Post
I know... that is what I learned on... I did however own a museum piece-a DEC PDP11...a 12" rack for the CPU with 2 8K core cards, a 12" 1M platter, and of course the 16 panel switches to toggle in the boot loader. I even had all the schematics!
I loved PDP11's! I owned a heathkit H11 which was a LSI version of the PDP11. I latter purchased a PDP11/05. The hard drive was a 3rd party unit 10 MB drive. 1 platter was fixed and 1 removable. If you worked in the same room as the computer you needed to wear hearing protection.

The drive was ill. I tracked it down to a bad counter chip and was about to fix it. Just then a fellow who fixed disk drives for the local supermarket chain showed up and offered to "tune it up". When he finished it did not seek properly, an over velocity error.

I sold the ill drive for what I paid for both. A friend has the CPU in his garage. Maybe I should see if I can get it back!

3v0
__________________
Please post questions to the forums. PM's are for personal communication.

BCHS/3v0's Tutorials
Junebug USB PIC programmer kit., USB Bit Whacker,
The 15 Minute Printed Circuit Board! (+drill time)
3v0 is offline  
Old 7th November 2008, 01:34 PM   #24
Default

Quote:
Originally Posted by 3v0 View Post
I loved PDP11's! I owned a heathkit H11 which was a LSI version of the PDP11. I latter purchased a PDP11/05. The hard drive was a 3rd party unit 10 MB drive. 1 platter was fixed and 1 removable. If you worked in the same room as the computer you needed to wear hearing protection.
Me too... did you look at the assy for it? wonderful thing-the machine code had microcode level control!
Ubergeek63 is offline  
Old 7th November 2008, 02:17 PM   #25
Default

Quote:
Originally Posted by Ubergeek63 View Post
Me too... did you look at the assy for it? wonderful thing-the machine code had microcode level control!
My initial setup included an Intertube video terminal and a paper tiger printer. The paper tape worked. After a few months I built the dual floppy. H27 IIRC. SS SD 8 inch floppys.

The Intertube died just on the otherside of warrenty. The ROM went away which was due to poor design. H19 kits were backordered for months so I purchased a H9. The paper tiger lasted for years (no decenders).

Did I say I miss Heathkit.

3v0
__________________
Please post questions to the forums. PM's are for personal communication.

BCHS/3v0's Tutorials
Junebug USB PIC programmer kit., USB Bit Whacker,
The 15 Minute Printed Circuit Board! (+drill time)

Last edited by 3v0; 7th November 2008 at 02:18 PM.
3v0 is offline  
Reply

Tags
code, convert, file, hex

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Help convert 12c508a file to 16F84 OY2L Micro Controllers 3 26th March 2008 02:49 PM
I want to convert Voltage to digital (BCD Code) nuttaphong191 Electronic Projects Design/Ideas/Reviews 7 15th March 2008 03:30 PM
Convert binary to BCD code genetica General Electronics Chat 7 16th September 2007 03:37 PM
convert hex code to 7 seg display electroicarus General Electronics Chat 12 26th July 2006 02:58 PM
how can i convert this code from C language into assembly ?? zika1212 Micro Controllers 1 24th March 2004 11:56 PM



All times are GMT. The time now is 01:32 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker