Lost Password?


Go Back   CodeCall Programming Forum > Software Development > General Programming

General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-16-2007, 03:04 AM
wenwang wenwang is offline
Newbie
 
Join Date: Mar 2007
Posts: 4
Rep Power: 0
wenwang is on a distinguished road
Default help with project

i'm facing a problem with my final year project.

the situation is,
if switch 1 is pressed, LED will light up and when switch 2 is pressed again, the LED will go off.
I have attach a text file, which i done half way.
So i need someone to guide me along with the programming part.

For your information, I'm using the PIC16C745 microchip.
Attached Files
File Type: txt Doc1.txt (534 Bytes, 11 views)

Last edited by wenwang; 04-16-2007 at 03:07 AM. Reason: forget to attach the text file
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 04-16-2007, 07:53 AM
Lop's Avatar   
Lop Lop is offline
Speaks fluent binary
 
Join Date: May 2006
Posts: 1,149
Rep Power: 18
Lop will become famous soon enoughLop will become famous soon enough
Default

I'm not sure what I am looking at here. Are these binary numbers for turning on and off the LED?
__________________
Lop
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-16-2007, 08:04 AM
wenwang wenwang is offline
Newbie
 
Join Date: Mar 2007
Posts: 4
Rep Power: 0
wenwang is on a distinguished road
Default

Quote:
Originally Posted by Lop View Post
I'm not sure what I am looking at here. Are these binary numbers for turning on and off the LED?

the binary are to set the input/output for the mircochip.
1 as input
0 as output
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-17-2007, 01:24 AM
wenwang wenwang is offline
Newbie
 
Join Date: Mar 2007
Posts: 4
Rep Power: 0
wenwang is on a distinguished road
Default RE: help with my project

i re-write the program again with comments on it..
so i think it will be easier for you all to understand what i'm writing.
anyone whose know how to edit my program to uses 2 switches to on/off LED can reply asap ?
as tml i need to hand up to my supervisor.
thank you!
Attached Files
File Type: txt Doc1.txt (769 Bytes, 9 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-30-2007, 01:47 AM
rameshkumar rameshkumar is offline
Newbie
 
Join Date: Oct 2006
Posts: 20
Rep Power: 8
rameshkumar is on a distinguished road
Default message to project

Quote:
Originally Posted by wenwang View Post
i'm facing a problem with my final year project.



the situation is,
if switch 1 is pressed, LED will light up and when switch 2 is pressed again, the LED will go off.
I have attach a text file, which i done half way.
So i need someone to guide me along with the programming part.

For your information, I'm using the PIC16C745 microchip.
Hi
you have one problam because you call to main programme which out to on you have declare of main method to call a noop but you have declare of portb,1 those have retrive of port number0 but post are declare of 1to o some problam are declare and some problam have call method
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 04-30-2007, 01:48 AM
rameshkumar rameshkumar is offline
Newbie
 
Join Date: Oct 2006
Posts: 20
Rep Power: 8
rameshkumar is on a distinguished road
Default you projects

Hi
you have one problam because you call to main programme which out to on you have declare of main method to call a noop but you have declare of portb,1 those have retrive of port number0 but post are declare of 1to o some problam are declare and some problam have call method
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A cool project idea. AlexanderRybak Community Projects 3 02-11-2008 03:37 AM
Project: Iterate AlexanderRybak Community Projects 4 02-28-2007 05:07 PM
Contributing to a project Jordan Community Projects 7 09-15-2006 05:43 PM
Community Project! - Recent project gone sour Crane C# Programming 5 09-09-2006 03:13 PM
Embed and run an EXE from inside project NeedHelp C# Programming 0 06-13-2006 04:02 PM


All times are GMT -5. The time now is 01:19 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 98%

Ads