EmbeddedRelated.com
Memfault Beyond the Launch

Best PIC family for C programming

Started by Staiger in Piclist16 years ago 19 replies

Colleagues, In recent threads a number of you have sounded words of caution about using C for the "smaller" PICs, such as the 12- and...

Colleagues, In recent threads a number of you have sounded words of caution about using C for the "smaller" PICs, such as the 12- and 16-families. What would you recommend as a sensible PIC family for programming in C? To put this into context, I have used C successfully with small projects, most notably with the 16F818, and also the 12F509 and 16F84. But I'm not an expert and appre...


Setting up IO ports

Started by ajellisuk in Piclist16 years ago 1 reply

Hi I'm new to pics, and have a project where I'm using a PIC10F206. I'm trying to set all I/O ports to 0 but I'm having no success....

Hi I'm new to pics, and have a project where I'm using a PIC10F206. I'm trying to set all I/O ports to 0 but I'm having no success. All ports seem to be high except GP2 which oscillates. My code is: #include void main() { set_tris_b(0x00); output_b(0); while(1); } I'm sure the chip is being programmed because MPLAB says it was successful. Could someo


Control the amplitude of a 115VAC

Started by globalpositioning in Piclist16 years ago 12 replies

Any idea or suggestion on how to play with the amplitude of a 115VAC? Note: amplitude, not...

Any idea or suggestion on how to play with the amplitude of a 115VAC? Note: amplitude, not PWM... Regards, ------------------------------------


Open collector outputs

Started by Staiger in Piclist16 years ago 3 replies

I'm pretty new to PICs, so if I've made a silly mistake, please forgive me! Do any PICs have "open collector" type output ports? I'd like to...

I'm pretty new to PICs, so if I've made a silly mistake, please forgive me! Do any PICs have "open collector" type output ports? I'd like to use the ports to switch some transistors which operate at a higher voltage than the PIC's Vdd. The example I have in mind is using four output ports to control an 'H' bridge (for a bi-directional motor). The upper transistors in the 'H' are PNP ...


Driving 3.3V parts from 5V PIC

Started by jandidden in Piclist16 years ago 8 replies

Hi, I am designing a piece of audio equipment that involves a uController, an LCD and an analog level chip. The LCD needs 5V digital...

Hi, I am designing a piece of audio equipment that involves a uController, an LCD and an analog level chip. The LCD needs 5V digital signals, the level chip can only work with 3.3V digital commands. The uC can of course run on either voltage. I had this plan: run the uC and LCD from 5V, the level chip from 3.3V. Then drive the level chip control lines from the 5V uC via a resistor. ...


dsPIC33FJ128MC802 PWM motor control

Started by KM6VV in Piclist16 years ago

Hi John, I see you're a ham too! I'm KM6VV. Central coast, CA. I'm starting a dual motor control project for a microbot robot. Two DC...

Hi John, I see you're a ham too! I'm KM6VV. Central coast, CA. I'm starting a dual motor control project for a microbot robot. Two DC motors with encoders (Lynxmotion), and a dsPIC33FJ128MC802. I'm currently playing with application note 696 code on an 18F4620 while I wait for the dsPIC. The ds is a little different! I've not yet figured out what are the comparable settings for...


MPLAB Watch Window (missing ADD SYMBOL button)

Started by r p in Piclist16 years ago 2 replies

? I am trying to ADD SYMBOL in a watch window and the button is not active. It is only allowing SFR addition. Any clues. ? I know this is...

? I am trying to ADD SYMBOL in a watch window and the button is not active. It is only allowing SFR addition. Any clues. ? I know this is going to be simple but I can't remember how to get it to recognize symbols. ? Thanks in advance Richard ?


Graphics user interface for PICs

Started by stanstan127 in Piclist16 years ago 2 replies

I have recently completed a menu based user interface for PICs and I've made the code open source. It is based on a $20 color LCD display. ...

I have recently completed a menu based user interface for PICs and I've made the code open source. It is based on a $20 color LCD display. Documentation describing this project, along with the PIC code can be found at: www.reifel.org/PICUserInterface/ I've also posted a short movie on YouTube demonstrating how the user interface works. It is at: www.youtube.com/watch?v=TDNtWvRc...


Programming a PIC16F72 microcontroller in C

Started by Jason Hsu in Piclist16 years ago 8 replies

I'm trying to program a PIC16F72 microcontroller in C. But I keep reaching dead-ends. The trouble with trying out different solutions is that it...

I'm trying to program a PIC16F72 microcontroller in C. But I keep reaching dead-ends. The trouble with trying out different solutions is that it takes time to keep up with all of them as well as to implement them properly. I'd like to hear from those of you who have successfully programmed PIC16F72 microcontrollers (or similar) in C with a computer setup similar to mine. I have three co...


C18 ADC question

Started by Steve Nance in Piclist16 years ago 7 replies

I'm looking for some sample code that shows how to read an ADC over USB using a 18F4550. I've looked at the MC sample code for the PICDEM FS...

I'm looking for some sample code that shows how to read an ADC over USB using a 18F4550. I've looked at the MC sample code for the PICDEM FS USB board, but it's just too tough to make sense of with all the functions it has. I would like to find something simple if possible. Thanks, Steve ------------------------------------


Ask a Question to the EmbeddedRelated community

To significantly increase your chances of receiving answers, please make sure to:

  1. Use a meaningful title
  2. Express your question clearly and well
  3. Do not use this forum to promote your product, service or business
  4. Write in clear, grammatical, correctly-spelled language
  5. Do not post content that violates a copyright


Memfault Beyond the Launch