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 3rd February 2007, 06:04 AM   #16 (permalink)
New Member
 
Join Date: Nov 2006
Location: Virginia
Posts: 28
jess is on a distinguished road
Default

I just discovered the 12F683 chip some time ago. It can operate up to 8MHz and does not use an OSCAL value. It is somehow self calibrating. I'm using it now instead of the 12F675. Check it out.

Jess
jess is offline   Reply With Quote
Old 3rd February 2007, 01:44 PM   #17 (permalink)
Experienced Member
 
Join Date: Jan 2005
Location: Michigan, USA
Posts: 1,495
Mike, K8LH is a glorious beacon of lightMike, K8LH is a glorious beacon of lightMike, K8LH is a glorious beacon of lightMike, K8LH is a glorious beacon of lightMike, K8LH is a glorious beacon of light
Default

That's my favorite 8-pin PIC. I should have mentioned it to you before.

It's fast enough to support a full-duplex 9600 baud bit-banged serial I/O package with circular buffers using 3x bit-rate interrupts.

Regards, Mike
Mike, K8LH is online now   Reply With Quote
Old 3rd February 2007, 05:42 PM   #18 (permalink)
Experienced Member
 
 
Join Date: Jan 2004
Location: So Cal
Posts: 328
donniedj has a spectacular aura about
Default

I have alot of samples of both 675 and 683 (683 collecting dust in bin) but was unaware that 683 default calibration value '0' means factory calibration. All this time I thought all 8-pin PICs must be calibrated once erased just because the 675 must be.

These 8-pin and 8-bit wonders just keep getting better. Only if the other Micro company could follow in Microchips footsteps, only if...
__________________
"Code more, post less." - by the ACG, by Me
http://www.anothercoilgunsite.com
Truth Be Told:
http://www.kuro5hin.org/story/2004/2/7/144019/8872
Kits hinder. Oscope and single cycle debug endows you with intimate wisdom and know how.
donniedj is offline   Reply With Quote
Old 3rd February 2007, 06:00 PM   #19 (permalink)
Experienced Member
 
Join Date: Apr 2006
Location: Italy
Posts: 818
eng1 is just really niceeng1 is just really niceeng1 is just really niceeng1 is just really nice
Default

The calibration values are stored in fuses in a special register, beyond the user program memory and they're not erased when programming the PIC12F683.
I like this PIC because it has TIMER2 module too.
eng1 is offline   Reply With Quote
Old 3rd February 2007, 06:21 PM   #20 (permalink)
Experienced Member
 
Join Date: Jan 2005
Location: Michigan, USA
Posts: 1,495
Mike, K8LH is a glorious beacon of lightMike, K8LH is a glorious beacon of lightMike, K8LH is a glorious beacon of lightMike, K8LH is a glorious beacon of lightMike, K8LH is a glorious beacon of light
Default

It's also the only 8-pin part with a CCP module.

Please check out this zero jitter 8-channel Servo Controller concept (below).

Regards, Mike
Attached Images
File Type: jpg Crazy-8 Servo Controller v3 (12F283).JPG (55.1 KB, 20 views)
Mike, K8LH is online now   Reply With Quote
Old 3rd February 2007, 06:24 PM   #21 (permalink)
Experienced Member
 
Join Date: Jan 2005
Location: Michigan, USA
Posts: 1,495
Mike, K8LH is a glorious beacon of lightMike, K8LH is a glorious beacon of lightMike, K8LH is a glorious beacon of lightMike, K8LH is a glorious beacon of lightMike, K8LH is a glorious beacon of light
Default

The PWM module is pretty cool too, though the example RGB Accent Light Controller below uses software PWM;

Mike
Attached Images
File Type: jpg RGBX.JPG (100.1 KB, 34 views)

Last edited by Mike, K8LH; 3rd February 2007 at 07:04 PM.
Mike, K8LH is online now   Reply With Quote
Old 9th May 2008, 10:35 AM   #22 (permalink)
New Member
 
Join Date: Feb 2008
Posts: 3
divya sebastian is on a distinguished road
Default cud u actually help me plsssssssssss. i need serious help dude.

hi!
this is divya sebastian here.
i am first year electronics student. now i shall explain the depth of my pathetic situation.i have leant no computer languages before... .and as a result i am in deep trouble when it comes to PIC . now i have been given a project , the jist pf which is as follows.




'' you are to design code debugg and demonstrate a system which shall enable the following mesage to be sent to a pc oer an rs- 232 connection

the message to be sent shall be ' ABC' ''



SO IS THERE ANY KIND SOUL OUT THERE WHO CAN HELP ME SORT THE WHOLE THING OUT... N TRY N MK ME UNDERSTAND THE WHOLE PIC thing.

well we r supposed to use a pic 12f675.

pls do mail me at divyasebastiank@yahoo.com

thanksssssssssss









Quote:
Originally Posted by johankj
Hello all. This is my first post, althought I've been reading this forum quite a bit. Excellent stuff! Anyways, I hope there is someone out there that can help me with my little PIC-Chip.

I'm a novice with PICs, but I have a good project which require RS232. I have managed to to it with a 16F627, but I need ADC on a small footsprint, so I went for the 12F675.

After I rewrote the code to fit the 12F675, I just couldn't get it working. I was banging my head against the wall for weeks, but I just couldn't figure out why.

My suspicion is that I overwrote the OSCCAL values. I'm not sure if I can read the location of that value, since the programmer I'm using (Velleman) is not that good. If I jump to that address, as part of the recommended calibrarion routine, the PIC hangs. I'm pretty sure it's lost, is this what you would expect from an overwritten OSCCAL value? 3F3F, I'm not even sure what that transelates to in Opcode. I've ordered a proper programmer, which should arrive next week

BTW: Two good links to pages regarding OSCCAL:
http://users.tpg.com.au/btkelly/pic/osccal_sync.html
http://www.petesworld.demon.co.uk/ho...PIC/piccal.htm

I'll post my code below for anyone to check. Sorry for the mess, couldn't get the table thing to work. I've written it as simple as possible, with no trixi parts. Is my code ok? Does it do what I want it to do? (Which is to output an ASCII letter every now and then )




I'm gonna order a few more of those 12F675, and see if I can't get it working. Any advice on the above would be most appreciated, to recap: Is my code OK, and have I overwritten OSCCAL?

Does anyone know the aproximate frequency-range for the internal oscilator?

Oh, and the project I'm doing with this particular PIC is a circut that samples temperature and moisture, and sends it down RS232. I will actually use this on work. I'll post the whole project when it's done, if anyones interested.

All replies are most welcome. And thanks again everyone for an excellent forum.
divya sebastian is offline   Reply With Quote
Old 9th May 2008, 06:44 PM   #23 (permalink)
Experienced Member
 
 
Join Date: Jan 2007
Location: Norway
Posts: 110
johankj is on a distinguished road
Default

I am not going to write the code for you, but I can point you in the right direction:

Nigel Goodwin has some good tutorials for PICs, and he also describes a software based RS232. The 12F675 Doesn't have an inbuilt hardware USART, which would make it easier. You will basically have to write a "software" USART. Look here for Nigels tutorials: http://www.winpicprog.co.uk/pic_tutorial.htm

I will be happy to try to answer any technical questions. Good luck
johankj is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Latest
PCMCIA to RS232 for ICD2 clone clockdoctor Micro Controllers 6 7th April 2008 10:10 PM
Cannot read 12F675 with ICSP dprischak Micro Controllers 4 1st June 2006 02:37 AM
RS232 buffer TDY General Electronics Chat 3 18th March 2005 08:36 PM
rs232 to rs232 data logger with 1meg buffer -help needed ccaammaaccaazzii Electronic Projects Design/Ideas/Reviews 11 20th October 2004 09:43 PM
I²C and RS232 on the same PIC l30 Micro Controllers 2 3rd July 2004 03:14 AM


All times are GMT. The time now is 04:24 PM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0 (Unregistered)