Searching \ for 'Simulation problem - 99%' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=simulation+problem
Search entire site for: 'Simulation problem - 99'.

Truncated match.
PICList Thread
'Simulation problem - 99%'
2000\03\31@133033 by Saurabh Sinha

picon face
part 0 857 bytes content-type:application/octet-stream;Firstly, I would like to thank all those that have helped me with my FIR
filter program. Its now working 99% or maybe its 100%, but I am having one
problem, I am using MPLAB to simulate the program. I am using <Window,
Modify> to assign a value for PORTB, which is supposed to be the simulated
version of the ADC.

However, the program keeps using this as zero. If I force a value into uk,
then try and run the program, then I have success, I suspect the problem
lies with initialization [or possibly in the main program], I would
appreciate it if somebody could have a look...

Thanks in advance for your replies.

Regards,

Saurabh

Content-Type: application/octet-stream;
       name="latest1.asm"
Content-Disposition: attachment;
       filename="latest1.asm"

Attachment converted: growth:latest1.asm (????/----) (00008E8C)

2000\03\31@183541 by Harold M Hallikainen

picon face
On Fri, 31 Mar 2000 20:27:12 +0200 Saurabh Sinha <spam_OUTssinhaTakeThisOuTspamIEEE.ORG>
writes:
> Hi,
>
> Firstly, I would like to thank all those that have helped me with my
> FIR
> filter program. Its now working 99% or maybe its 100%, but I am
> having one
> problem, I am using MPLAB to simulate the program. I am using
> <Window,
> Modify> to assign a value for PORTB, which is supposed to be the
> simulated
> version of the ADC.
>
> However, the program keeps using this as zero. If I force a value
> into uk,
> then try and run the program, then I have success, I suspect the
> problem
> lies with initialization [or possibly in the main program], I would
> appreciate it if somebody could have a look...
>

       I'm doing something similar in simulation, poking a value into port b.
Of course, writing to port B puts the value in the output register, while
reading port B reads the pins (from who knows where in simulation). I did
a "run to here" to run the program to after port initialization, the
wrote 0x00 to trisb (making the pins output). Then, the value written to
port B will be read by the remainder of the software.

Harold



FCC Rules Online at http://hallikainen.com/FccRules
Lighting control for theatre and television at http://www.dovesystems.com

________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk!  For your FREE software, visit:
dl.http://www.juno.com/get/tagj.

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...