Searching \ for '[PIC]: 12F675' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/microchip/devices.htm?key=pic
Search entire site for: '12F675'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: 12F675'
2002\10\29@183638 by Tony Nixon

flavicon
picon face
Man, these chips are tough.

I accidently connected power the opposite way and came back a bit later
to that old familiar burning smell. The PSU I was using can supply 5VDC
at 4A and instinctively I touched the chip which sizzled my finger and I
actually got a blister from it straight away. Could have used it as a
pie warmer I'm sure.

Amazingly, it still works ok.

I better go home on sick leave now ;-)


--
Best regards

Tony

mICros
http://www.bubblesoftonline.com
spam_OUTsalesTakeThisOuTspambubblesoftonline.com

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


2002\10\29@184050 by Dale Botkin

flavicon
face
> Man, these chips are tough.

I did that too, though not as badly.  Takes a lickin' and keeps on tickin'.
Dirt cheap too.  My new favorite chip, I think!  8-)

Dale

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


2002\10\29@192242 by hard Prosser

flavicon
face
Don't forget to fill in an accident report - in triplicate!

Richard P




Man, these chips are tough.

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


2002\10\30@003822 by Howard McGinnis

flavicon
face
I've come to the conclusion that all the F series one's are tough.

I've had chips in backwards, put them in right, still OK. I had an '873
based board have over 36 volts on the +5 after the 78L05 fried. The program
was gone, but it reprogrammed OK.

A lot tougher than the 16CXX-JW light bulbs....

Howard


Howard McGinnis
Electronic Visions, Inc.
1650 Barrett Drive
Rockledge FL 32955 USA
321-632-7530 FAX 321-632-3396
http://www.e-visions.com

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\10\30@123849 by Peter L. Peres

picon face
*>Man, these chips are tough.

It likely only means the bonding wires got thinner and they got the oxygen
content and pH in the epoxy under control ;-)

Peter

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\10\30@124046 by Peter L. Peres

picon face
On Tue, 29 Oct 2002, Howard McGinnis wrote:

*>I've come to the conclusion that all the F series one's are tough.
*>
*>I've had chips in backwards, put them in right, still OK. I had an '873
*>based board have over 36 volts on the +5 after the 78L05 fried. The program
*>was gone, but it reprogrammed OK.
*>
*>A lot tougher than the 16CXX-JW light bulbs....

The non-JW 16CXX were also tough. The reason is the bonding wires lose
heat to the epoxy so they can take much more heat than in a JW.

Peter

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics



'[PIC]: 12F675'
2003\12\03@124043 by =?iso-8859-1?Q?=C5ke_Neehr?=
picon face
Hello!

I want to use a PIC 12F675 to compare and
switch with in a temperature regulator circuit.
My problem is how I have to handle the high
voltage and current 400/4 A ~ .
It´s possible to drop this to a supply voltage
+5V= with any components without to cause
to much heat.
Can I use a triac to switch the phase on/off
with the PIC?

Will be grateful for any kinds of suggestions.

Regards
ÅkeN

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

2003\12\03@135215 by

picon face
Ake Neehr wrote:
> It?s possible to drop this to a supply voltage
> +5V= with any components without to cause
> to much heat.

"transformeress power supply" in Google gave 3.230 hits...

Maybe any of them could work ?

B.t.w, TAKE CARE !!!

Don't stick four fingers where they don't belong. :-)


Jan-Erik.

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

2003\12\03@152857 by Bob Axtell

face picon face
I THINK you have two questions:

1. You want to drop the 400VAC supply down to
5V to run the PIC12F675.

2. You want to switch the power to the heater or
fan that draws 400V@4A.

If that is the case:

1. The easiest way is to get a transformer that will reduce
400V to 10VAC, then you can build a simply AC to DC supply
and regulate it with a 78L05.

You CAN directly drop it using a capacitor, but it is dangerous
to work with, especially if none of the main AC legs are neutral
(usually the case with 400-440VAC). The thermistor, for example,
might be 400V above safety ground.

2. The easiest way is to use a TRIAC with a zero-crossing optical
switch. Some people (CRYDOM) make these ready to use, with 3V DC input and
capable of switching 600VAC @ 20A or so.

--Bob

At 10:28 AM 12/3/2003, you wrote:
{Quote hidden}

--------------
Bob Axtell
PIC Hardware & Firmware Dev
Tucson, AZ
1-520-219-2363
"I lose some on each sale but make it up in volume."

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


'[PIC]: 12F675'
2004\07\06@000757 by Mike
flavicon
face
I am still trying to build my rocket timer. I was wondering if anyone knows
of sample code  and or projects using the 12f675 also using its internal
precision timer. Though small it should be more than sufficient to handle 2
inputs and one output, and it will also limit weight and extra parts

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2004\07\06@022405 by Matthew Brush

flavicon
face
> I am still trying to build my rocket timer. I was
> wondering if anyone knows
> of sample code  and or projects using the 12f675
> also using its internal
> precision timer. Though small it should be more than
> sufficient to handle 2
> inputs and one output, and it will also limit weight
> and extra parts

I think those chips have a RTC timer in them ... I've
used it in a C compiler and it's really not hard.  The
timer (0?) just creates an interrupt every tick and
then increments a variable in the interrupt service
routine.  Not sure if you're just timing a flight or
something else, but it doesn't sound hard.

Cheers

=====
MJ Brush
LeftClick.ca Internet Media Services
mbrush@[NOSPAM]leftclick.ca

______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2004\07\06@054717 by Jan-Erik Soderholm

face picon face
> > 12f675 also using its internal precision timer.
>
> I think those chips have a RTC timer in them

The 12F675 doesn't have either a "internal precision
timer" (well, depends on your definition of "precision"...)
nor an "RTC".

>  ... I've used it in a C compiler and it's really not hard.

Well, your *C compiler* might have something like a RTC,
but that's another matter. And the original post didn't say
that a C compiler was going to be used.

> The
> timer (0?) just creates an interrupt every tick and
> then increments a variable in the interrupt service
> routine.  Not sure if you're just timing a flight or
> something else, but it doesn't sound hard.

Right, it's realy not "rocket science"... :-)

The 12F675 has two timers.

Select one and set it up to do whatever you want it
to do. How to do that, is (of course) in the data sheet.
If something is unclear in the data sheet, just ask, but
it wasn't clear from the original post that the data sheet
had been read at all.

Best Regards,
Jan-Erik.

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2004\07\06@091208 by Rubens Monteiro Luciano

flavicon
face
There is a cheap solution:

Buy an very cheap alarm clock (here cost about 1 dollar). Open it and get
the circuit. It produces precise (crystal controled) 1 second or 2 second
pulses. Use it as you time reference(interrupt routine) for the 12f675.

Rubens M. Luciano
Sao Paulo
Brazil

At 04:05 6/7/2004, you wrote:
>I am still trying to build my rocket timer. I was wondering if anyone knows
>of sample code  and or projects using the 12f675 also using its internal
>precision timer. Though small it should be more than sufficient to handle 2
>inputs and one output, and it will also limit weight and extra parts
>
>--
>http://www.piclist.com hint: The list server can filter out subtopics
>(like ads or off topics) for you. See http://www.piclist.com/#topics

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2004\07\06@095208 by Mike

flavicon
face
Actually I havent read it entirely but the code to calibrate the clock at 4
Mhz is:

bsf  status, rp0  ;bank1
 call 3ffh      ;get the cal value
 movwf osccal   ;calibrate
 bcf  status, rp0  ;bank0

  I was just hoping for some sample code and circuits for this proc.

Project details:
I will be using two  switches the first will engage very shortly after
ignition and the second is a mercury tilt  switch and will make momentary
contact when the chute opens.

  The first switch will start a program where a 1/2 second pulse will
be triggered every 1.5 seconds  then when the second switch engages the
timing changes to 1/2 second pulse every 5 seconds, the  total amount of
pulses will be 12 then the chip shuts down regardless
of any
input.


{Original Message removed}

2004\07\06@112222 by Jan-Erik Soderholm

face picon face
Mike wrote :

> Actually I havent read it entirely but the code to calibrate
> the clock at 4 Mhz is:

To me, saying "4 Mhz" is the same as saying  "between 3.5 and 4.5 Mhz".
Is that realy what you ment ?

>  bsf  status, rp0  ;bank1
>   call 3ffh      ;get the cal value
>   movwf osccal   ;calibrate
>   bcf  status, rp0  ;bank0

Correct, to keep the INTOSC within the specs. Which, of course,
will not be *exactly* 4 Mhz anyway ! Just within the specs of
the data sheet.

{Quote hidden}

Yes, but, you do not specifiy how accurate those times have to be.
Besides of that, I see no major problem with this. Just dive in and
try to write up something !

Jan-Erik.

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2004\07\06@144823 by Mike

flavicon
face
{Quote hidden}

   I think at 1% the accuracy will be sufficiant, I guess I will just have
to try and "cut and paste" from various programs and fill in the missing
paramaters, my knoledge of C has change from gibberish to greek, so I am
starting to understand it. I have really not seen many projects using that
pic.

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2004\07\06@163516 by Andy Tuthill
picon face
Hi Mike,

If you have not done many projects with the 12F675 before there are a few
things that are worth mentioning which may help you get going.  A lot of
setup needs to be done to get the io pins to do what you need.  In your case
make sure you turn off the ADC and comparator so the pins are not in the
default analog input condition.  Timer 0 and timer 1 are both nearly
identical to every other pic's timer 0 and timer 1 I have worked with so
there should not be anything new there.  Otherwise I completely agree with
the earlier statement that the data sheet is your best friend and should be
your first source of information.

Timer 1 can be divided out to make reasonably accurate time measurements,
but if this is a single function program why not just use some normal
counting routine in the main program and skip using interrupts?  It might
make your programming easier.

Regards,
Andy

_________________________________________________________________
Get fast, reliable Internet access with MSN 9 Dial-up   now 2 months FREE!
http://join.msn.click-url.com/go/onm00200361ave/direct/01/

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2004\07\06@213626 by Peter van Hoof

picon face
I need a few more details to actually understand this!

After the ignition switch is made what happens next?
   a)1 second delay or
   b)0.5 second output

After the mercury switch is made what happens next?
I assume that if the switch is made when the output is on the following
pause will be 4.5 seconds.

If the mercury switch is made during the pause what happens next?
   a)the pause is extended to 4.5 seconds or
   b)the current pause remains 1 seconds but the next pause is 4.5 seconds

I would also like to confirm that the pauses are 1 and 4.5 seconds , or are
they 1.5 and 5 seconds?

Peter

>Project details:
>I will be using two  switches the first will engage very shortly after
>ignition and the second is a mercury tilt  switch and will make momentary
>contact when the chute opens.

>The first switch will start a program where a 1/2 second pulse will
> be triggered every 1.5 seconds  then when the second switch engages the
> timing changes to 1/2 second pulse every 5 seconds, the  total amount of
>pulses will be 12 then the chip shuts down regardless of any input.

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2004\07\07@002132 by Mike

flavicon
face
----- Original Message -----
From: "Peter van Hoof" <.....pvhKILLspamspam@spam@ADELPHIA.NET>
To: <PICLISTspamKILLspamMITVMA.MIT.EDU>
Sent: Tuesday, July 06, 2004 6:37 PM
Subject: Re: [PIC]: 12F675


> I need a few more details to actually understand this!
>
> After the ignition switch is made what happens next?
>     a)1 second delay or
>     b)0.5 second output
It will actually be a launch rod detection switch, as the rocket leaves the
rod the switch activates and it will take a picture, then a 1.5 second
delay.
> After the mercury switch is made what happens next?
It will be a momentary switch and it will make a .5 second pulse to take a
picture, and be locked into the 5 second delay cycle, regardless of input
from switches.
> I assume that if the switch is made when the output is on the following
> pause will be 4.5 seconds.

> If the mercury switch is made during the pause what happens next?
>     a)the pause is extended to 4.5 seconds or
>     b)the current pause remains 1 seconds but the next pause is 4.5
seconds
>
> I would also like to confirm that the pauses are 1 and 4.5 seconds , or
are
> they 1.5 and 5 seconds?
The pauses are 1.5 and 5 seconds, if the mercury switch activates it will
emmidiately take a picture and start the 5 second delay cycle, after a total
of 12 pictures the program ends, (so I have two flights per roll.
{Quote hidden}

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2004\07\07@003044 by Jake Anderson

flavicon
face
you dont really need timers for this at all
just straight forward delay loops will do.
take a look at my version of the same at
http://www.robowars.org/teams/plan-b/Doonside%202003-06-28


> {Original Message removed}

2004\07\07@004118 by Peter van Hoof

picon face
part 1 3176 bytes content-type:text/plain; (decoded 7bit)

Here is the program a simple version of the program in basic and compiled to
a hex file
only took a few hours to test and write (i need the practice)
it would be best to get at least the trial version of the
Pic Simulator IDE  http://www.oshonsoft.com  to compile any changes you may need

Hope this helps

Peter

{Original Message removed}
part 2 3165 bytes content-type:application/octet-stream; (decode)

part 3 760 bytes content-type:application/octet-stream; (decode)

2004\07\07@065423 by Peter van Hoof

picon face
part 1 4121 bytes content-type:text/plain; (decoded 7bit)

Sorry about the mistake here and polluting the list with another attachment.
I had the check of the ignition signal inverted to make simulation easier
but forgot to take it out before mailing it!


Greetings
Peter

{Original Message removed}
part 2 2368 bytes content-type:application/octet-stream; (decode)

part 3 760 bytes content-type:application/octet-stream; (decode)

2004\07\07@070041 by Jan-Erik Soderholm

face picon face
Just a minor note regarding your attachements...

Note that many organisations and companies have various
"attachement filters" in use. The filetype ".BAS" is one commonly
filtered filetype, and could generate a message like this :
(the example is an actual message from your mail)

FILE DELETED
------------

Warning!

The attached file rocket_ok.bas has not been delivered.
The reason is due to the file filter FILE FILTER= *.bas in effect.

Please notify the sender of this e-mail.

[Company name deleted...]

Regards,
Jan-Erik

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2004\07\07@071742 by Peter van Hoof

picon face
Thank you for mentioning this I had not thought of it.
Guess I should have renamed it before sending it out.
or included the text in my mail

If anyone wants it emailed directly to him drop me an email at
.....pvhKILLspamspam.....adelphia.net

Peter

{Original Message removed}

2004\07\07@083330 by Josh Koffman

face picon face
Actually, many servers bounce the entire message. I woke up to a slew
of PICList bounce errors sitting in my admin account.

Josh
PICList Admin #5
--
A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete
fools.
       -Douglas Adams

On Wed, 7 Jul 2004 13:01:21 +0200, Jan-Erik Soderholm
<EraseMEjan-erik.soderholmspam_OUTspamTakeThisOuTtelia.com> wrote:
> Note that many organisations and companies have various
> "attachement filters" in use. The filetype ".BAS" is one commonly
> filtered filetype, and could generate a message like this :
> (the example is an actual message from your mail)
>
> FILE DELETED

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2004\07\07@092543 by DJMurray

flavicon
face
Just a suggestion, Peter!  When I send BASIC source files over email, I
always go the extra step of creating an ASCII text version of the source
and send that instead with a TXT or ASC suffix.

Most corporate email servers will let that pass without complaint.

Dennis




Peter van Hoof wrote:

>Thank you for mentioning this I had not thought of it.
>Guess I should have renamed it before sending it out.
>or included the text in my mail
>
>If anyone wants it emailed directly to him drop me an email at
>pvhspamspam_OUTadelphia.net
>
>Peter
>
>{Original Message removed}

2004\07\07@093826 by Mike

flavicon
face
I cant seem to download it for some reason.
----- Original Message -----
From: "Peter van Hoof" <@spam@pvhKILLspamspamADELPHIA.NET>
To: <KILLspamPICLISTKILLspamspamMITVMA.MIT.EDU>
Sent: Wednesday, July 07, 2004 3:54 AM
Subject: Re: [PIC]: 12F675


> Sorry about the mistake here and polluting the list with another
attachment.
{Quote hidden}

compiled
> to
> > a hex file
> > only took a few hours to test and write (i need the practice)
> > it would be best to get at least the trial version of the
> > Pic Simulator IDE  http://www.oshonsoft.com  to compile any changes you may
need
{Quote hidden}

leaves
> > the
> > > rod the switch activates and it will take a picture, then a 1.5 second
> > > delay.
> > > > After the mercury switch is made what happens next?
> > > It will be a momentary switch and it will make a .5 second pulse to
take
{Quote hidden}

engages
> > the
> > > > > timing changes to 1/2 second pulse every 5 seconds, the  total
> amount
> > of
> > > > >pulses will be 12 then the chip shuts down regardless of any input.
> > > >
> > > > --
> > > > http://www.piclist.com hint: The list server can filter out
subtopics
{Quote hidden}

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2004\07\07@104154 by Peter van Hoof

picon face
part 1 490 bytes content-type:text/plain; charset=ISO-8859-1 (decoded 7bit)

I'm at work and have no access to my original emails so this email will not have the right header for this thread on it

Again the attachments this time as .txt files

rename rocket_ok_bas.txt to rocket.bas
rename rocket_ok_hex.txt to rocket.hex

And once again sorry to bother you all again

Kind regards

Peter van Hoof

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.




part 2 2799 bytes content-type:text/plain;
'rocket prog 07/06/04 for 12f675 by Peter van Hoof
'for basic compiler http://www.oshonsoft.com
'2 input switches
'       pin 6 to gnd (ignition) made when rocket leaves platform
'       pin 5 to gnd (mercury) made when parachute deploys
'1 output
'       pin 2 (camera) goes high for 0.5 sec inmediately after takeoff
'       and every 1.5 seconds thereafter until parachute deploys
'       when parachute deploys high for 0.5 sec low for 4.5 sec
'       for a maximum of 12 pictures


'oscilator calibration section not sure if needed for this app
'this part does not simulate well so I commented it out
'ASM:        bsf STATUS, RP0
'ASM:        call 3ffh
'ASM:        movwf OSCCAL
'ASM:        bcf STATUS, RP0


'declaration of variables
Dim after As Bit
Dim count As Byte
after = 0                       'set after chute deployment
count = 0                       'counter for number of pictures


'gpio setup section
OPTION_REG.7 = 0                'weak pullups on
OPTION_REG.6 = 0                'interrupt on falling edge of int
WPU = 00000111b                 'weak pullups on on inputs 0,1,2
GPIO = 0h                       'GPIO all bits off
CMCON = 7h                      'set gp 0 And 2 To digital io
ANSEL = 0h
TRISIO = 00001111b              'set gp 0,1,2,3 As inputs and
'set gp 4 And 5 As outputs
Symbol ignition = GPIO.1        'gpio 1 is ignition switch
Symbol mercury = GPIO.2         'gpio 2 is mercury switch
Symbol camera = GPIO.5          'gpio 5 is camera or whatever
                               'you have hooked up


'main program starts here

again:

'patiently wait for the ignition input to come on (launch time)

If ignition = 1 Then Goto again

'set up of interrupts

INTCON.INTE = 1                 'enable int interrupts
INTCON.INTF = 0                 'clear the int flag
Enable                          'enable global interrupts

count = 1                       'first pic being taken

loop:                           'get back here for more pictures
camera = 1                      'output On
WaitMs 500                      '0.5 second wait
camera = 0                      'Output Off
If count = 12 Then Goto the_end  'end if already 12 photo's
WaitMs 1500  '1.5 second wait
If after = 1 Then WaitMs 3500   'if on its way down wait extra 3.5 sec
count = count + 1               'keep track of number of pictures
Goto loop                       'go snap another pic

'
'this is where the program stays when it is done
'
the_end: Goto the_end  'endless loop, we are done

End

'interrupt subroutine executed when int (gp2) goes to 0 volt

On Interrupt
       INTCON.INTE = 0
       INTCON.INTF = 0
       after = 1
Resume


--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.




part 3 858 bytes content-type:text/plain;
:100000008A110A120E280000DF00030E8301DE00B1
:1000100050205E0E8300DF0E5F0E09002C10AD0134
:1000200083168113831283160113831283160730FC
:100030009500831285010730990083169F01831272
:1000400083160F3085008312851C272824281F3033
:1000500083050B168B108B170130AD008516F4301D
:10006000A0000130A100552085122D080C3C031D75
:100070003A284E281F308305DC30A0000530A1004F
:1000800055202C1C4828AC30A0000D30A100552074
:100090001F3083052D08013EAD002E284E284F2825
:1000A0000B128B102C1408005428A0080319602888
:1000B0006720A00300000000000000000000552899
:1000C000A108031908006720A103A00355280C30DC
:1000D000A500A50B6928000000001230A200A20BA9
:1000E00076287820782000000000080078206F280B
:0C00F0000D30A400A40B7A2800000800CA
:02400E00C43FAD
:00000001FF


--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.



2004\07\07@211546 by Mike

flavicon
face
How do I load the hex into a pic, icprog gives me error messages as soon as
I open it. or is there another way?
{Original Message removed}

2004\07\07@212416 by Robert B.

flavicon
face
You might need to install the windoze xp patch for ICprog, I remember a
similar problem in the distant past...


{Original Message removed}

2004\07\07@212418 by Peter van Hoof

picon face
open the file with notepad and delete the garbage that piclist puts at the
end of the file , save it and try again

Peter

{Original Message removed}

2004\07\07@220226 by Mike

flavicon
face
Tried that and replaced the apostrphys with colons and I'm still getting
errors messages in mplab.
----- Original Message -----
From: "Peter van Hoof" <RemoveMEpvhEraseMEspamEraseMEADELPHIA.NET>
To: <RemoveMEPICLISTspam_OUTspamKILLspamMITVMA.MIT.EDU>
Sent: Wednesday, July 07, 2004 6:25 PM
Subject: Re: [PIC]: 12F675


{Quote hidden}

will
{Quote hidden}

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2004\07\07@223541 by Mike

flavicon
face
Where would that be?
----- Original Message -----
From: "Robert B." <spamBeGonepiclistSTOPspamspamEraseMENERDULATOR.NET>
To: <KILLspamPICLISTspamBeGonespamMITVMA.MIT.EDU>
Sent: Wednesday, July 07, 2004 6:23 PM
Subject: Re: [PIC]: 12F675


{Quote hidden}

will
{Quote hidden}

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2004\07\07@231355 by Peter van Hoof

picon face
the trick is
1 delete the crap at the end of the file
2 in mplab you use file, inport, import to memory

peter

{Original Message removed}

2004\07\07@232019 by Peter van Hoof

picon face
i also loaded the file in icprog , works well also
the hex file to load should look like this
:100000008A110A120E280000DF00030E8301DE00B1
:1000100050205E0E8300DF0E5F0E09002C10AD0134
:1000200083168113831283160113831283160730FC
:100030009500831285010730990083169F01831272
:1000400083160F3085008312851C272824281F3033
:1000500083050B168B108B170130AD008516F4301D
:10006000A0000130A100552085122D080C3C031D75
:100070003A284E281F308305DC30A0000530A1004F
:1000800055202C1C4828AC30A0000D30A100552074
:100090001F3083052D08013EAD002E284E284F2825
:1000A0000B128B102C1408005428A0080319602888
:1000B0006720A00300000000000000000000552899
:1000C000A108031908006720A103A00355280C30DC
:1000D000A500A50B6928000000001230A200A20BA9
:1000E00076287820782000000000080078206F280B
:0C00F0000D30A400A40B7A2800000800CA
:02400E00C43FAD
:00000001FF

Peter
{Original Message removed}

2004\07\07@233057 by Robert B.

flavicon
face
I think I misread your original problem.  I thought you meant that ICProg
was giving problems when you opened it (ICProg), but upon a 2nd inspection
it seems that you meant it was having problems when opening the file?  AH
the love of ambiguity.

If you want the patch anyway it's available from the ICProg site, I'm sure
you can find it in no time.


{Original Message removed}

2004\07\08@000948 by Mike

flavicon
face
Once I changed the compatibility mode it worked, but I still cant get it to
work without error in MPlab even after all the suggestions.
{Original Message removed}

2004\07\08@082411 by Jan-Erik Soderholm

face picon face
Mike wrote :


> ... but I still cant get it to work without error in MPlab...

Mike, this is, I think, the third time you say that
you get some "errors" from some tool.

Why on earth don't you tell us WHAT specific errors you get ???
And from what tool, you have mentioned both ICprog
and MPLAB and it's not clear if that was different errors
or the same ones.

Jan-Erik.

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email TakeThisOuTlistserv.....spamTakeThisOuTmitvma.mit.edu with SET PICList DIGEST in the body

2004\07\08@112901 by Mike

flavicon
face
Ok, here it is.

Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\MPLAB IDE\MCHIP_Tools\mpasmwin.exe" /q /p12F675
"camtimer.asm" /l"camtimer.lst" /e"camtimer.err"
Error[113]   C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\CAM\CAMTIMER.ASM 15 :
Symbol not previously defined (STATUS)
Error[113]   C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\CAM\CAMTIMER.ASM 15 :
Symbol not previously defined (RP0)
Error[116]   C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\CAM\CAMTIMER.ASM 16 :
Address label duplicated or different in second pass (ASM)
Error[116]   C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\CAM\CAMTIMER.ASM 17 :
Address label duplicated or different in second pass (ASM)
Error[113]   C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\CAM\CAMTIMER.ASM 17 :
Symbol not previously defined (OSCCAL)
Error[116]   C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\CAM\CAMTIMER.ASM 18 :
Address label duplicated or different in second pass (ASM)
Error[113]   C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\CAM\CAMTIMER.ASM 18 :
Symbol not previously defined (STATUS)
Error[113]   C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\CAM\CAMTIMER.ASM 18 :
Symbol not previously defined (RP0)
Error[122]   C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\CAM\CAMTIMER.ASM 22 :
Illegal opcode (after)
Error[122]   C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\CAM\CAMTIMER.ASM 23 :
Illegal opcode (count)
Error[122]   C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\CAM\CAMTIMER.ASM 37 :
Illegal opcode (ignition)
Error[122]   C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\CAM\CAMTIMER.ASM 38 :
Illegal opcode (mercury)
Error[122]   C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\CAM\CAMTIMER.ASM 39 :
Illegal opcode (camera)
Error[108]   C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\CAM\CAMTIMER.ASM 61 :
Illegal character (5)
Warning[205] C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\CAM\CAMTIMER.ASM 63 :
Found directive in column 1. (If)
Error[108]   C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\CAM\CAMTIMER.ASM 63 :
Illegal character (=)
Warning[212] C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\CAM\CAMTIMER.ASM 74 :
Expected (ENDIF)
Halting build on first failure as requested.
BUILD FAILED: Thu Jul 08 10:59:48 2004

There were much more errors but I got those.

This is the program

;rocket prog 07/06/04 for 12f675 by Peter van Hoof
;for basic compiler http://www.oshonsoft.com
;2 input switches
;      pin 6 to gnd (ignition) made when rocket leaves platform
;      pin 5 to gnd (mercury) made when parachute deploys
;1 output
;       pin 2 (camera) goes high for 0.5 sec inmediately after takeoff
;       and every 1.5 seconds thereafter until parachute deploys
;       when parachute deploys high for 0.5 sec low for 4.5 sec
;       for a maximum of 12 pictures


;oscilator calibration section not sure if needed for this app
;this part does not simulate well so I commented it out
ASM:        bsf STATUS, RP0
ASM:        call 3ffh
ASM:        movwf OSCCAL
ASM:        bcf STATUS, RP0


;declaration of variables
Dim after As Bit
Dim count As Byte
after = 0                       ;set after chute deployment
count = 0                       ;counter for number of pictures


;gpio setup section
OPTION_REG.7 = 0                ;weak pullups on
OPTION_REG.6 = 0                ;interrupt on falling edge of int
WPU = 00000111b                 ;weak pullups on on inputs 0,1,2
GPIO = 0h                       ;GPIO all bits off
CMCON = 7h                      ;set gp 0 And 2 To digital io
ANSEL = 0h
TRISIO = 00001111b              ;set gp 0,1,2,3 As inputs and
;set gp 4 And 5 As outputs
Symbol ignition = GPIO.1        ;gpio 1 is ignition switch
Symbol mercury = GPIO.2         ;gpio 2 is mercury switch
Symbol camera = GPIO.5          ;gpio 5 is camera or whatever
                               ;you have hooked up


;main program starts here

;again:

;patiently wait for the ignition input to come on (launch time)

;If ignition = 1 Then Goto again

;set up of interrupts

INTCON.INTE = 1                 ;enable int interrupts
INTCON.INTF = 0                 ;clear the int flag
Enable                          ;enable global interrupts

count = 1                       ;first pic being taken

loop:                           ;get back here for more pictures
camera = 1                      ;output On
WaitMs 500                      ;0.5 second wait
camera = 0                      ;Output Off
If count = 12 Then Goto the_end  ;end if already 12 photo's
WaitMs 1500  ;1.5 second wait
If after = 1 Then WaitMs 3500   ;if on its way down wait extra 3.5 sec
count = count + 1               ;keep track of number of pictures
Goto loop                       ;go snap another pic


;this is where the program stays when it is done

the_end: Goto the_end  ;endless loop, we are done

End

;interrupt subroutine executed when int (gp2) goes to 0 volt

On Interrupt
       INTCON.INTE = 0
       INTCON.INTF = 0
       after = 1
Resume



{Original Message removed}

2004\07\08@113732 by hael Rigby-Jones

picon face
>-----Original Message-----
>From: Mike [TakeThisOuTmrgizmoKILLspamspamspamVIANET.CA]
>Sent: 08 July 2004 19:08
>To: .....PICLISTspamRemoveMEMITVMA.MIT.EDU
>Subject: Re: [PIC]: 12F675
>
>
>Ok, here it is.
>
>Clean: Deleting intermediary and output files.
>Clean: Done.
>Executing: "C:\Program Files\MPLAB
>IDE\MCHIP_Tools\mpasmwin.exe" /q /p12F675 "camtimer.asm"
>/l"camtimer.lst" /e"camtimer.err"
>Error[113]   C:\DOCUMENTS AND
>SETTINGS\MIKE\DESKTOP\CAM\CAMTIMER.ASM 15 :
>Symbol not previously defined (STATUS)

<snip>


The reason for all these errors is that MPASM is an assembler, and you are
feeding it code designed for a BASIC compiler!

Mike

=======================================================================
This e-mail is intended for the person it is addressed to only. The
information contained in it may be confidential and/or protected by
law. If you are not the intended recipient of this message, you must
not make any use of this information, or copy or show it to any
person. Please contact us immediately to tell us that you have
received this e-mail, and return the original to us. Any use,
forwarding, printing or copying of this message is strictly prohibited.
No part of this message can be considered a request for goods or
services.
=======================================================================

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email RemoveMElistservspamspamBeGonemitvma.mit.edu with SET PICList DIGEST in the body

2004\07\08@122836 by Peter van Hoof

picon face
As Michael Rigby-Jones already said this is not an assembler file, it's written in basic and mplab only supports assembler.

There is a hint in the second line of the program that should have given you a clue.

"for basic compiler http://www.oshonsoft.com"

If you want to recompile the file or even simulate it
I can highly recommend going to this site and picking up
the picsimulatoride package. In trial mode it gives you
20 uses for free but for a newcomer in the pic world
I can highly reccomend buying it for $19 it's great value

The simulator in it is more complete and better than any
others I have seen, including microchip's. the basic compiler though simple is fun to use and there are a huge amount of external hardware that you can simulate as well  (example: lcd display, 7 segment display, terminal for hardware and bitbanged uart)

I was under the impression you just wanted to load the hex file in mplab to simulate it, this can be done simply by selecting file, import, import program memory and selecting the hex file in mplab.

Peter van Hoof



{Quote hidden}

> {Original Message removed}

2004\07\08@150853 by Steve Kosmerchock

picon face
Mike,

Another rocket lover, greetings! I used the PIC12C508A for my "XCC-1" (XAVIEN Camera Controller). The internal oscillator worked like a champ, I don't have any of the code with me at my "real" job. When I get home I can send you some code, what exactly are you looking for?

Best regards,
Steve

Steven Kosmerchock
 * XAVIEN *
Phoenix, Az USA
http://www.xavien.com
steveEraseMEspamxavien.com


Mike <RemoveMEmrgizmoEraseMEspamspam_OUTVIANET.CA> wrote:
I am still trying to build my rocket timer. I was wondering if anyone knows
of sample code and or projects using the 12f675 also using its internal
precision timer. Though small it should be more than sufficient to handle 2
inputs and one output, and it will also limit weight and extra parts

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email @spam@listservRemoveMEspamEraseMEmitvma.mit.edu with SET PICList DIGEST in the body

2004\07\08@192132 by Mike

flavicon
face
Thanks, I thought that program was just a simulator, here I was looking for
an assembler, now that it is clear to me I will get it. As for MPlab, I
click on file, import and that lets me sellect a file, I select it and
nothing happens.

Thanks for your help
{Original Message removed}

2004\07\09@001812 by Peter van Hoof

picon face
----- Original Message -----
From: "Mike" <EraseMEmrgizmospam@spam@VIANET.CA>
To: <@spam@PICLISTspam_OUTspam.....MITVMA.MIT.EDU>
Sent: Thursday, July 08, 2004 10:02 PM
Subject: Re: [PIC]: 12F675


> Thanks, I thought that program was just a simulator, here I was looking
for
> an assembler, now that it is clear to me I will get it. As for MPlab, I
> click on file, import and that lets me sellect a file, I select it and
> nothing happens.
>
> Thanks for your help
<snip><chop><chop>

Actually something does happen
the file gets loaded in memory of the simulated pic but you dont see
anything because you do not have a window open displaying the memory
contents

first
click on options,development mode,mplab sim simulator and select the
pic12f675

Click on window,program memory to display the program memory

Import,import to memory and select the file you should see the contents
appearing

Open some more windows: file registers, special function registers (you coul
use buttons on the toolbar to do this or the window menu)

Use the buttons on the toolbar green trafic light = run red trafic light =
stop
, footprints are step etc

use debug, run , animate to see the program run
read the mplab manual or helpfile and experiment to get it to do what you
want it to do.
simulating is a lot easier with picsimulatoride than it is with mplab

Peter

--
http://www.piclist.com hint: To leave the PICList
spamBeGonepiclist-unsubscribe-requestEraseMEspammitvma.mit.edu

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