Skip to content

PIC Microcontrollers

Featured Replies

What's peoples oppinions and experiences?

There's a couple of projects i have in mind, i just need to start easy first.. Was thinking of writing in C but think i've settled for writing in assembler.

Anyone else have any input?

For the moment just got a velleman programmer / exp board with PIC16F627

Cheers

Kev

Edited by Jabbasport

You need to start easy, yet want to start in assembler??? Madness.

All the PIC code i've seen, has been in C.

  • Author

Easy projects first..

Language im not bothered about, just dont want to go and put time into learning one language to then realise i should have learnt something else..

Thanks for the reply.

Kev

Easy projects first..

Language im not bothered about, just dont want to go and put time into learning one language to then realise i should have learnt something else..

Thanks for the reply.

Kev

Then DO NOT choose assembler, that thought is insane, unless you are doing real time work. Pick a higher level language, Java if there are PIC API's.

Easy projects first..

Language im not bothered about, just dont want to go and put time into learning one language to then realise i should have learnt something else..

Thanks for the reply.

Kev

C is as others say v low level, but has a good basis for anything else you may come across. We did alot of C in 1st-2nd yr of uni (right over my head!), few projects with PIC, others were simply simulations of things. Others went further onto pascal and java etc.. I stuck to the hardware side and avoid programming at all cost, save that for the Computer science people.. :D

Edited by JLneonhug

I agree with Kev's choice. Certainly to start with, using the assembly language really gives you a feel for the platform. Most of the PIC fammily are so simple that the instruction set is quite within the grasp of a programmer. Also, I haven't yet found a c compiler which provides useful optimization for the platform - all they seem to do is jumble your data around into a form which is no quicker but much more difficult to debug!

JMTPW

  • Author

Been playing around with some basic C today.. It certainly does seem a lot simpler to do simple things, age old led flashing etc.

I'll eventually want to design a project to take in a gearbox speed sensor and give an determined output dependent on the revolutions.

Based on this, do you think C or assembler would be best?

Thanks for your input

Kev

Another angle on it - both assy and C are useful, but really I would find out what support forums etc exist for the PIC board you have. If there is a big community for both ways of developing with that board, then it does not matter. If there is a distinct group of users who stick with assembly code versus C, then go for that.

Basic PICs are easy to learn how to program as TKW also states, you do get more control that way :)

Good fun regardless :)

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Important Information

Welcome to BRISKODA. Please note the following important links Terms of Use. We have a comprehensive Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.