ELEKTOR FORUMS

Please log in to post a reply or subscribe / unsubscribe to topics

Topic: Switch Led b0 on how ?????????

Author Post

confused

12 posts

Popping In
Popping In

Read post 19-10-2010 22:40

Hi ive had the course and the eblocks for a week now and I'm having no luck with with the first program, it compliles but the PIC 18F4455 does not work. Luckly I have 3 18F4550 which is exactly the same as the PIC18F4455 except slightly more programming memory. With this one it complies no problem it downloads to the PIC no problem BUT it will not light the LED, ive checked the settings many times everything is correct. I have also checked the Led board and they are fine can anybody give me any ideas on what's wrong please.

Regards, Peter

Post edited by Elektor Editor on 20-10-2010 09:11

GeenBert

64 posts

Frequent Visitor
Frequent Visitor

Read post 20-10-2010 17:51

The most likely cause is that you use the wrong settings. The correct settings are shown starting on page 54. Also note the comment on the top of page 55. If you follow the description in the course to the letter this program (and all the others) will work as described.

Using another PIC will not solve that problem but only make it worse, because it requires yet another setting.

The least likely cause is that the 18f4455 is broken, perhaps by static electricity. I have yet to see my first fried PIC but it does happen.

confused

12 posts

Popping In
Popping In

Read post 20-10-2010 20:38

No settings are correct as i said have been through them [ profanity removed ] many times they are all totally correct, Also i use an antistatic band so im pretty certain that was not the course ,and ive allso had the EB006 replaced
regards Peter

Post edited by Elektor Editor on 21-10-2010 08:28

Bernie W

4 posts

Popping In
Popping In

Read post 20-10-2010 22:55

Peter, I had problems initially and it wasn't until I looked a bit harder at the eb006 I discovered that as well as the 18f pic being plugged in there was also another one plugged in in position U18!! This causes havoc!, and it shouldn't have been fitted I'm sure.
I'm just wondering if the same thing has happened to you as my course is fairly new as well? I agree with the other replies that if you have checked and followed the setup instructions correctly everything will work as indicated. I'm not at all sure that this course is aimed at the absolute beginner (me!) as it seems to make quite a lot of assumptions along the way. Unfortunately the english is not too clear either! I would have expected better for £700!
Bernie

confused

12 posts

Popping In
Popping In

Read post 21-10-2010 12:14

Hi yes there was one on both EB006 and i removed it before i started im in someways a novice but i have been using BS2's for over a year but they have there limits but for a beginner there is so much free stuff on Parallax web site its amazing including all software for free,
But i wanted to do more and the course seems the best way but i have to say ide expect more than just a forum for support for the cost of the course.
But ive still got the first problem to sort out the only thing that i have a problem with is Page56 under project options when you change the Clock speed to 48000000 Communication speed fall to 4 and not to 9 as the book says. As for the comment the other one put about using the 18f4550 and the setting will be wrong is wrong it is the same as the 18F4455 but it just has slightly more programming memory all pin outs are the same and if you look at the datasheet they both are the same one
Regards Peter

confused

12 posts

Popping In
Popping In

Read post 07-11-2010 15:09

Hi have finally got it working and a quick note to the Moderator Everthing works the same using the 18F4550 as i said earlier the only difference is the amount of memory

Arjen H.

1075 posts

Power User
Power User

Read post 09-11-2010 17:01

confusedHi have finally got it working ...


Could you tell us what the problem was?

confused

12 posts

Popping In
Popping In

Read post 10-11-2010 20:20

Ok incredable mistake when I opened the c box to enter the program i just deleted the program between the curly braces and entered the one on the course work, But instead of // for comments in the cboxs its got /* and at end */ it assembles ok but does not work, and by chance when i was trying it again just buy a fluke of luck i deleted everything and hey presto it worked
Regards Peter

Bernie W

4 posts

Popping In
Popping In

Read post 10-11-2010 23:12

Yes you've probably found out that */ and /* actually "comment out " anything that's between them in your program!! (In other words the program ignores anything that is between these two symbols!!)
Dont we just love C !!!

Arjen H.

1075 posts

Power User
Power User

Read post 11-11-2010 12:57

confusedOk incredable mistake when I opened the c box to enter the program i just deleted the program between the curly braces and entered the one on the course work, But instead of // for comments in the cboxs its got /* and at end */ it assembles ok but does not work, and by chance when i was trying it again just buy a fluke of luck i deleted everything and hey presto it worked
Regards Peter


Thanks for letting us know.... we can all learn from this kind of issues.

Same happens to me sometimes when commenting out some code to track a bug. Once the bug was found all commented code must be 'uncommented'. And yes, the tricky part is to restore ALL commented code...

Please log in to post a reply or subscribe / unsubscribe to topics

Follow Elektor

      

Act now!

Bestseller

Microprocessor Design using Verilog HDL

This book is a practical guide to processor design in the real world. It presents the Verilog HDL in an easily digestible fashion and serves as a thorough introduction about reducing a computer architecture and instruction set to practice. 

Package Deals

Elektor Bundles

Check our Package Deals and save money! Discounts up to 19% now available!

Price Slashed

Elektor OSPV

This Open Source People Vehicle is perfect for factory halls, warehouses, hospitals, colleges, schools etc.

Elektor PCBs at 25% OFF