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 20th January 2009, 05:42 PM   #1
Default Hi Tech "c"

Is anybody using this? Trying to find documentation on I/O. I did d/l the docs I found at the site but did not find any I/O specific info.
I like the config / setup wizard, generates all of the config code for the chip.

Mike
binzer is offline  
Old 20th January 2009, 10:15 PM   #2
Default

Quote:
Originally Posted by binzer View Post
Is anybody using this? Trying to find documentation on I/O. I did d/l the docs I found at the site but did not find any I/O specific info.
I like the config / setup wizard, generates all of the config code for the chip.

Mike
Hey, ya, I'm using it. It's my favourite compiler for PICs. Whats up?
solarwind is offline  
Old 21st January 2009, 06:15 AM   #3
Default

looking for info on how to use the I/O, usart and adc. I did not find much in the manual on the download page.
Mike
binzer is offline  
Old 21st January 2009, 06:25 AM   #4
Default

Quote:
Originally Posted by binzer View Post
looking for info on how to use the I/O, usart and adc. I did not find much in the manual on the download page.
Mike
Here is complete C code demonstrating use of UART on the PIC16F886:

My UART Code

For the chip 16F886 but a lot of other chips can be used to substitute given that they have UART and the like.

As for usage of IO, it's as easy as PORTC = 0x00 or PORTC = 0b10101010 in binary representation. Very easy to translate from assembler.

For example, to make my UART code above, I looked at the code here: 16F628 UART test and translated parts of it to C. Very easy to do.

Last edited by solarwind; 21st January 2009 at 06:26 AM.
solarwind is offline  
Old 21st January 2009, 06:30 AM   #5
Default

And if you want to know how to use ADC, you can look at some sample ADC code in asm and port it to C. For example, my PICKIT2 demo board came with some sample applications in asm. One of the samples demonstrated the use of ADC. Take a look:

Sample ADC Code

It's really easy to port to C.

Last edited by solarwind; 21st January 2009 at 06:32 AM.
solarwind is offline  
Old 21st January 2009, 06:35 AM   #6
Default

The manual is actually quite useful. If you're using windows, it is in C:\Program Files\HI-TECH Software\PICC\PRO\9.60\docs or something like that. The file is called "manual.pdf". In Linux, it could be anywhere, lol. I would guess that it's somewhere in /usr/local. Search your filesystem for it, it should be there.

The datasheet for your microcontroller chip will also be very useful to get things going.
solarwind is offline  
Old 21st January 2009, 03:24 PM   #7
Default

Thanks for that info, I tried the Hi Tech and liked the chip setup wizard but the manuals leave a bit to be desired (at least for me re-learning 'c'). I do use Linux as my desktop and have heard there is some pic software out there but have not tried it yet. I use RDP (Remote Desktop) to an old Dell P3 w/xp pro and MPLAB to work with my Junebug because it's just easy (ethernet cable to the net switch and usb to junebug). I'm also going to check out the Microchip C18.

Mike
binzer is offline  
Old 21st January 2009, 09:02 PM   #8
Default

Quote:
Originally Posted by binzer View Post
Thanks for that info, I tried the Hi Tech and liked the chip setup wizard but the manuals leave a bit to be desired (at least for me re-learning 'c'). I do use Linux as my desktop and have heard there is some pic software out there but have not tried it yet. I use RDP (Remote Desktop) to an old Dell P3 w/xp pro and MPLAB to work with my Junebug because it's just easy (ethernet cable to the net switch and usb to junebug). I'm also going to check out the Microchip C18.

Mike
No problem dude. I love Linux too! What distro are you using? I use Arch Linux on my desktop and Ubuntu on my laptop. I also love the C-WIZ that HI-TECH provides. I never thought much of it at first, then I tried it and it makes everything a whole lot easier, especially when you're using an unfamiliar chip.

Last edited by solarwind; 21st January 2009 at 09:02 PM.
solarwind is offline  
Old 22nd January 2009, 06:23 AM   #9
Default

Quote:
Originally Posted by solarwind View Post
No problem dude. I love Linux too! What distro are you using? I use Arch Linux on my desktop and Ubuntu on my laptop. I also love the C-WIZ that HI-TECH provides. I never thought much of it at first, then I tried it and it makes everything a whole lot easier, especially when you're using an unfamiliar chip.
I printed out a few pages from the MCC manual on the I/O and going to give that a try.
I use openSuSe for the desktop, and I have a machine that runs Centos for some ham radio stuff. I want to do a few projects that I can use with my radio gear, digital in's to monitor status, and the analog in to monitor power supply's and etc and send it via rs232 to the computer. A while back I saw a software package that would take the serial data and send it over the network to another machine, kinda sorta what I want to do.
Mike
binzer is offline  
Reply

Tags
tech

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
while(feet!=wet) { search(friendly="Linux", hardware="avr", software="kde desktop");} FirefighterBlu3 Micro Controllers 6 12th September 2008 06:31 PM
Can WE "The Electro-tech-online" make a compation Rami00972 Electronic Projects Design/Ideas/Reviews 134 18th May 2008 12:35 PM
Changing "dark on" switch to "light on" NewUser General Electronics Chat 3 15th September 2007 04:30 AM
What the "JK" means in "J-k flip-flop" windozeuser General Electronics Chat 28 18th October 2004 02:06 PM
Lack of Comment input under "Electro Tech Content" Dean Huster Feedback/Comments 0 7th February 2004 06:57 AM



All times are GMT. The time now is 06:16 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker