Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx

Ads

Discussion Groups

Discussion Groups | Piclist | Mplab stimulus file question

A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.

Mplab stimulus file question - wdavis364 - Jan 5 15:02:02 2007

Using MpLab ver 7.20. Using the Stimulus (SCL) File to determine if
the code is doing what I expect. Whenever I step through the code
section shown below. the code will add in first if statement and sub
in the second if statement regardless whatever the setting in
Action.menu. The Stimulus isn't responding to what I am trying to do.
What do I need to do here?
thanks

#define INCREASE_100RPM (PORTB.6 == 0)
#define DECREASE_100RPM (PORTB.7 == 0)

while (1)
{
while (STEPPER_ON)
{
if (INCREASE_100RPM)
COUNT = COUNT + 15;
if (DECREASE_100RPM)
COUNT = COUNT - 15;

}
{



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )