This is a multi-part message in MIME format. ------=_NextPart_000_0008_01C6DC66.854515B0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Hi Tamas, enclosed is the .SCL file generated by MPLAB. I already looked at the file and it seems OK.=20 Actually, I would also prefere to write the file myself in the text editor (I know how to write testbench files for Verilog and/or VHDL), but I do not have any description of the SCL language. PavelK > -----Original Message----- > From: piclist-bounces@mit.edu=20 > [mailto:piclist-bounces@mit.edu] On Behalf Of Tamas Rudnai > Sent: Wednesday, September 20, 2006 2:44 AM > To: Microcontroller discussion list - Public. > Subject: Re: [PIC] MPLAB, Stimulus file and problem >=20 >=20 > Hi Pavel, >=20 > Could you attach the SCL file, so that it might show us what=20 > could be the problem. >=20 > BTW: SCL is a quite powerful language actually that is not=20 > documented by Microchip. Usually I found easier to write the=20 > SCL file by a text editor or even better, convert a WAV file=20 > into an SCL using a small dirty tool I wrote > -- it looks something like this: >=20 > // > // PWM_strait_1.5.SCL > // Generated by WAV2SCL.PL > // Thu Jan 1 00:00:00 1970 > // > configuration for "pic12f675" is > end configuration; >=20 > testbench for "pic12f675" is > begin > process is > begin > report "Stimulus actions INIT GP3 to LOW for 2ms"; > GP3 <=3D '0'; > wait for 2 ms; >=20 > loop > // overall of 22 ms frame rate >=20 > report "STATE:HIGH for 1.5ms"; > GP3 <=3D '1'; > wait for 1.5 ms; >=20 > report "STATE:LOW for 20.5ms"; > GP3 <=3D '0'; > wait for 20.5 ms; >=20 > end loop; > end process; > end testbench; >=20 > Change the processor type for that you have, and pin names=20 > etc to whatever that processor uses, then 'ms' to 's' or 'us'=20 > accordingly, basically that's it... >=20 > Tamas >=20 >=20 >=20 > On 20/09/06, Pavel Ko=F8ensk=FD wrote: > > > > Hello, > > > > I have a problem with stimulus file in MPLAB 7.30. > > > > I am debugging software where PIC is receiving packets from simple=20 > > radiomodem (868 MHz, AM, OOK). The transmitting side works=20 > OK, and I=20 > > am trying to debug the receiver. I used the SCL generator=20 > in MPLAB and=20 > > I created the stimulus file which should drive the receiving pin of=20 > > the PIC in MPSIM. In the SCL generator, the whole thing looks like: > > > > Time units us > > > > Time RB0 > > > > 0 0 > > 5000000 1 > > 5004000 0 > > > > and so on > > > > It means that at time 0, the RB0 pin is low. After 5=20 > seconds, the RB0=20 > > goes high (start of the transmittion), after 4 ms, RB0 goes=20 > low (first=20 > > start bit) etc. > > > > But, when I generate the SCL file and when I attach it to the=20 > > simulation, MPLAB react correctly to the first event (RB0=20 > going high=20 > > after 5 seconds), but the simulator ignore the rest of the=20 > file. RB0=20 > > never goes low after 4 ms and the rest of the file (the whole=20 > > simulated > > transmittion) is ignored. > > > > Anyone have some idea where I am wrong ? > > > > Thx for your help > > > > Best regards > > > > PavelK > > > > -- > > http://www.piclist.com PIC/SX FAQ & list archive > > View/change your membership options at=20 > > http://mailman.mit.edu/mailman/listinfo/piclist > > >=20 >=20 >=20 > --=20 > unPIC -- The PIC Disassembler > http://unpic.sourceforge.net > --=20 > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at=20 > http://mailman.mit.edu/mailman/listinfo/piclis> t >=20 ------=_NextPart_000_0008_01C6DC66.854515B0 Content-Type: application/octet-stream; name="aurel1.rar" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="aurel1.rar" UmFyIRoHAM+QcwAADQAAAAAAAAA5fnQggCoANgYAAD2mAAAC+P0Ru1y+MzUdMwoAIAAAAGF1cmVs MS5zY2wN3RERDM/NgNZ2A/B+BhUZWfZJuFoMOFxNAOJQlFkpFspFA/BML3tgbn+kly0LTyJCSAcN 9BsWkgkbpy92jm5d9dXd5m74nXX3/r6urq2xkGVWxkDKI79F4fDs/H8NPx5PF5v593t6P78368/J x9fT0evm49oc/p/zo9XJ0+bi7Onk538PVx8+60/bk9e1OLr5P62ef3bPL5P3L0dOz2/D4dkeGEOF ztPvdby/hfjkPjKbIR8U3Y5Ldxvgdv1x508vN6OzRLzfE7OXTl64PZn0+nLa3Bs5ur5Azazm+63v x/RPuf3V1+fbnH6f/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YLiid4lnCiTEomLciooq 1ssMdwmUG7IZBMm8N8KJmYFEzMCiaLEgmlLtxB0TV7f5zSCa1osNczn5W2WCqTah7lE3MCibzcsN djruOYwVSLObVwMojPG9m4hdSXtq4GUTBzZ22UTBYFFWtlha2TYxPcolvln0okxKJk3IqKJnBup0 gmawKJpFYEE0WBRNYLAgmqwKJtBYEE2bZpYUTcwKJuYFEXcYFEZ4rBVJeYFEvMCirxywx3CYRPco mDbwE0omLcioomNqtxGuZKcvLLBVJlc9yiZtyKiiZ2e3Ea55DcvRuRV3pghcs3U6okXq3IqKIzxb wsqqRezcioojPG0G4jXNcHL33giq+X8Y/IuUb99dyYj6Tu+tdVnV9g+nVY9z7WbyHufCXydl74mE vbONT4S3lnD4SYHwmM26nSCYtdGqnwmUlgQTJs41PhM5LAgmbWvUPhNJrAglt6PAfCa0WBBNnL2P hLbxiM+FWplhamTTA+E3q3xOkEN/R4D4Qco5uIo4aYL4S+jYioomEY5e+JhMKnuUSsD4TFrpUo+E yg3U6QTJe58JnFYEEzXufCaSWBBNG544omsG+J0gmtDAgmzzAgm0zAgq9ssL2ybeLciogjRza2U6 qkZ4yo3ELqS98D3IJe3l8iiYNzxxRMDAomLj3KJisCimtVkPhMj3PhM3N1OkP9du/3+yubuD/yDE PXsAQAcA ------=_NextPart_000_0008_01C6DC66.854515B0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist ------=_NextPart_000_0008_01C6DC66.854515B0--