|
|
View previous topic :: View next topic |
Author |
Message |
guest_guest Guest
|
Trying to understand the 'inputs' tab on the project wizard |
Posted: Wed Dec 12, 2007 3:52 pm |
|
|
Hello
Can someone please clear up something that's puzzling me about the input tab page in the project wizard?
You can see all the inputs for the PIC and you have an option from the little drop down arrow to set the pins to IN, OUT, HIGH, LOW etc. You can also add your own label description to the pin. When you click the view code button to see the code I expect to see the code setup for the pins HIGH, LOW, IN, OUT designations with something like
output_low (pin_B0);
but the code screen is empty. The only code I can get the wizard to write for me is when I change the pin label description. But the logic state of the pin and whether its set to i/p or o/p is missing. Is there some other setting I need to set somewhere else in the wizard?
Totally confused for a beginner. |
|
|
Guest_Guest Guest
|
Re: Trying to understand the 'inputs' tab on the project wiz |
Posted: Wed Dec 12, 2007 5:38 pm |
|
|
guest_guest wrote: | Hello
Can someone please clear up something that's puzzling me about the input tab page in the project wizard?
You can see all the inputs for the PIC and you have an option from the little drop down arrow to set the pins to IN, OUT, HIGH, LOW etc. You can also add your own label description to the pin. When you click the view code button to see the code I expect to see the code setup for the pins HIGH, LOW, IN, OUT designations with something like
output_low (pin_B0);
but the code screen is empty. The only code I can get the wizard to write for me is when I change the pin label description. But the logic state of the pin and whether its set to i/p or o/p is missing. Is there some other setting I need to set somewhere else in the wizard?
Totally confused for a beginner. |
sorry, strike the bit about the pin selection being high or low. The options available are Input, Output, Input/Output, Not used, and Analog. I meant to write why doesn't the code generator insert something that indicates the port direction based on the selection made re the port pins set Input, Output or Analog and why is there no option (as in some other similar wizard software), to put a logic value on the pin such as high, low, 1 or 0, and have the code show up. What I'm really asking is why do we have an opion down arrow in the wizard governing the input pins and then once you've made a selection no corresponding code shows up in the code generator? |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|