Searching \ for 'incorrect' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/index.htm?key=incorrect
Search entire site for: 'incorrect'.

No exact or substring matches. trying for part
PICList Thread
'Incorrect address.'
1995\11\15@050022 by Don McKenzie

flavicon
face
This is the second time a user of this list has sent me mail and given an
un-deliverable return address. The last time I was able to contact the
person with a message like this one, so I'll try again.

Chris.T. of spam_OUTgypoTakeThisOuTspaminnotts.co.uk your mail keeps bouncing. I have tried
all sorts of variations.

The typo I mentioned in David Tait's software was only the constants that
David had incorrectly set for a 7407. I somehow think David will have to
live with this for many years to come because of new users. Many variants
of the PC printer port driven PIC84 programmer software are now resident
on the free (cost of a local call only from any capital city) Compuserve
access MicroChip BBS.

Cheers Don...

 Low Cost DIY PCB's for PICs & COM1/LPT1 PC I/O Interface Kits    ;!
 Don McKenzie. 29 Ellesmere Cres., Tullamarine. 3043 Australia    ;@
 Tel +61 3 9338 6286 Mobile  +61 14 672 127 .....donmckKILLspamspam@spam@tbsa.com.au    ;#
 Check My Promo Disk at http://rasi.lr.ttu.ee/~sis/mirror/don/    ;$
 Type: 'finger donmckspamKILLspamtbsa.com.au|more'  for more information.


'16c74A incorrect ADC result (long)'
1998\05\29@224234 by PIC development
flavicon
picon face
Has anyone who has used the example code for the A/D convertor
on the 16c74A noticed "leakage" between channels?

I don't know if it's because I'm not waiting long enough
for the internal capacitor to settle or what, but I seem
to get slightly different values read from AN2, depending
on the voltage on AN1.

The details:

Here's the code from the Microchip document "Care and feeding
of the PIC16C74 and it's peripherals"
----------
; routine to do the a/d conversion. The channel number is in
; register Adcnt
; the result (8 bits) is transmitted as two Hex bytes, followed by a ':'

adcnvrt
       movf    Adcnt, 0        ; get a/d count value
       movwf   Adcntw          ; put in work register
       bcf     STATUS, 0       ; clear the carry flag for the upcoming
                               ; rotate operations
       rlf     Adcntw, 1
       rlf     Adcntw, 1
       rlf     Adcntw, 1
       movlw   0c1h            ; load the initial ADCON0 value
                               ; excepting channel select
       iorwf   Adcntw, 0       ; set the pin select bits we want
       movwf   ADCON0          ; set the ADCON0 with the new channel
       call    wait            ; wait for about 20 uSec
       bsf     ADCON0, 2       ; start conversion

adwait
       btfsc   ADCON0, 2       ; wait for conversion done
       goto    adwait

; (PJL) this is the added bit, do a second conversion after the
; first one has finished - see the text of the email below

       call    wait
       bsf     ADCON0, 2       ; start the second conversion
adw2
       btfsc   ADCON0, 2
       goto    adw2

; (PJL) back to textbook stuff

       movf    ADRES, 0        ; get analog value
       call    sendhex         ; output the data
       return
------

Now, I have set up AN3 as an external Vref (2.55 volts - no it doesn't
change when I read different channels). AN1 is fed from a 10K pot
connected to +5V and 0V. AN2 is fed from a LM35DZ temperature chip
that gives 10mV per degree C (hence the 2.55Vref)
I would expect a room temperature value of 23 (0x17), however this
varies from 22 up to 26 as I twiddle the pot on AN1. It is quite
reproducible. I have done this on two 16c74A/JW's, but not tried it on
different A/D channels.
There is a time delay between reading channels of roughly 3-4 mSec
while the just-read data is "sendhex'd" at 9600 Baud (3 bytes).

I can fix the problem by throwing away the first A/D reading, and
taking a second reading from the same channel, see the code between
the (PJL) comments. Now the values don't change.
Being an engineer at heart, I am happy to live with the above
code change to get the right result, but I'd still like to know
WHY and to see if anyone else has had a similar experience.

Pete

..............................................................................
. Never trust a man who, when left alone in ....... Pete Lynch               .
. a room with a tea cosy, doesn't try it on ....... Marlow, England          .
..........Billy Connolly. ......................... .....picKILLspamspam.....beowulf.demon.co.uk ..

1998\05\30@032858 by Chris Eddy

flavicon
face
I don't see anything boldly wrong here, my thought was acquisition time.  I see
you use 20uS (verified?) and the book says 11 or 12.  I always used more.  Most
of
the time, I select a channel as the last act in the routine, then start the
conversion when I get back to the start of the routine next time around.  There
is
then no doubt that settling has taken place.  I also no longer use the AD
interrupt, mainly because the conversion time is so short, I just loop for the
result.  Just like you do below.

Technically, your reference voltage is below the spec.  Also, there is a maximum
signal source impedance that you must honor, and your 10K pot is questionable.
Many times it is best to buffer a signal so that it has low (<10ohms) impedance.
I would be careful to use only 5V rails, and no negative on the opamp.  It is
imperative that you do not go beyond the PIC supply with the analog value. (voic
e
of experience).

Last issue, I found that the electrolytic cap back at the supply does not offer
good enough filtering at the PIC (when seperated).  I put a 100u at the PIC and
reduced bobble dramatically.

Good luck in your quest.

Chris Eddy, PE
Pioneer Microsystems, Inc.

PIC development wrote:

> Has anyone who has used the example code for the A/D convertor
> on the 16c74A noticed "leakage" between channels?
>

etcetera, etcetera.

1998\05\31@074016 by g.daniel.invent.design

flavicon
face
Pete,
You are right,
If you leave channels unconnected, or in a very high impedance state,
the PIC's internal  multiplexer will tend to pass the strongest signals
around to these ports also is you are cycling them fast. Motorola
68HC11s also do this. Quick way out is to put a very small capacitor
between each A2D pin and ground (unless on low impedance input.)
regards,
Graham


PIC development wrote:
{Quote hidden}


'16c74A incorrect ADC result (long)'
1998\06\01@075318 by mjb
flavicon
face
PIC development writes:
>
> Has anyone who has used the example code for the A/D convertor
> on the 16c74A noticed "leakage" between channels?
>
> I don't know if it's because I'm not waiting long enough
> for the internal capacitor to settle or what, but I seem
> to get slightly different values read from AN2, depending
> on the voltage on AN1.

I've noticed the exact same result with the 16C71, I found that
the minimum sample time as computed by the equations given in the
data sheet was too short.  After a few tries, I found that
multiplying the sample time by 2 or 3 (your 20us would be 40 or 60us
with my fix) corrects the problem.  I called an application engineer
at Microchip and got no reasonable explanation. (BTW, this was the JW
package.)

I asked some questions about this very subject in December '97 or Jan '98,
you might want to check in the archives to see if there was anything
else posted along this thread ("crosstalk" was in the subject).

Matt


-----------------------------
Matt Bennett                |
mjbspamspam_OUThazmat.com              |
http://www.hazmat.com/~mjb/ |

1998\06\02@073653 by Roland Andrag

flavicon
face
Date:          Mon, 1 Jun 1998 07:51:55 -0400
Reply-to:      @spam@mjbKILLspamspamhazmat.com
From:          Matt Bennett <KILLspammjbKILLspamspamSCDH-99.UMD.EDU>
Subject:       Re: 16c74A incorrect ADC result (long)
To:            RemoveMEPICLISTTakeThisOuTspamMITVMA.MIT.EDU

PIC development writes:
>
> Has anyone who has used the example code for the A/D convertor
> on the 16c74A noticed "leakage" between channels?
>
> I don't know if it's because I'm not waiting long enough
> for the internal capacitor to settle or what, but I seem
> to get slightly different values read from AN2, depending
> on the voltage on AN1.

Yes, I have seen the same effect - it seems to occur especially if
AN2 is being driven from a (too) high impedance source (100 kOhm pot
to save on power usage, for example).  Besides providing a lower
impedance source, increasing the sampling time should help.

Hope that works..

Cheers
 Roland
should help

1998\06\06@124212 by Bruce Cannon

flavicon
face
Sorry this is a few days behind, but I've had good luck with an RC filter.
This not only reduces noise, but also reduces the impedance seen by the
analog input a great deal, if the C is much higher than the sampling/pin C.

Bruce

{Original Message removed}


'all: [ADMIN] apologies, some incorrect topic remin'
2001\02\22@143349 by James Newton
face picon face
My bust. Somehow the subscription options for the reminder bot got set to
more than just the "other" channel. A bunch of people will receive incorrect
reminders saying that their posts were incorrectly topic tagged when, in
fact, they were correctly tagged. It also caused some duplicate posts in the
archive which I am weeding out as time allows.

I was having reliability problems with the piclist.com DNS server (again)
and I switched the archive and reminder bot inputs to piclist.org addresses,
but somehow got the options set incorrectly.

Sorry again for the inconvenience. It should be fixed now.

---
James Newton (PICList Admin #3)
spamBeGonejamesnewtonspamBeGonespampiclist.com 1-619-652-0593
PIC/PICList FAQ: http://www.piclist.com or .org

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics



'[PIC]: Incorrect bank access by assembler/linker o'
2003\02\20@105317 by o-8859-1?Q?Tony_K=FCbek?=
flavicon
face
Hi,
During porting of some old code to an 18F452 chip I've discovered
an strange error that I cannot figure out.
I have one part of the access ram that is dedicated to local variables
for use inside routines only ( i.e. never to be assumed persistent
across calls).
I have declared the bank portion as:

..
DATABANK   NAME=accesstmp  START=0x7A     END=0x7D        
..
SECTION         NAME=ACCESS_TEMP      RAM=accesstmp
..

In the linker control file, then 'declaring' ram I use:

ACCESS_TEMP     UDATA_OVR       ; overlaid temp data
Temp    RES 4                   ; temp used in divison and fixed point
routines


Now this ram is located in side the 0x00-0x7F access data range and
hence the compiler/linker should not use the BSR register for access.

But looking at the output is does, this code:

       CLRF    Temp     ;
       CLRF    Temp+1   ;
       CLRF    Temp+2   ;

generates:

6B7A    : CLRF  0x7A,0x1
6B7B    : CLRF  0x7B,0x1
6B7C    : CLRF  0x7C,0x1

Which indeed are using the BSR for access as the highest bit low byte
is set.

Why is this ? do I need to manually add the ',A', I belive that this
should not be needed, is there something I'm doing wrong or can be
done in another way to accomplish the correct result ?

BTW: Mplab IDE 6.10.00

Thanks In advance,

/Tony

--
http://www.piclist.com hint: To leave the PICList
TakeThisOuTpiclist-unsubscribe-requestEraseMEspamspam_OUTmitvma.mit.edu>

2003\02\20@111000 by Olin Lathrop

face picon face
>>
Now this ram is located in side the 0x00-0x7F access data range and
hence the compiler/linker should not use the BSR register for access.

But looking at the output is does, this code:

       CLRF    Temp     ;
       CLRF    Temp+1   ;
       CLRF    Temp+2   ;

generates:

6B7A    : CLRF  0x7A,0x1
6B7B    : CLRF  0x7B,0x1
6B7C    : CLRF  0x7C,0x1
<<

Hmm.  I'm a bit surprised by this too.  The linker does set the accessbank
bit properly for me on references to accessbank variables, but I haven't
tried it with overlays.  I noticed that you defined the linker section
with DATABANK instead of ACCESSBANK as I do, although I've never tried to
allocate UDATA_SHR memory in teh ACCESSBANK linker section.

For what it's worth, here is my linker control file for the 18F452:


//   Linker control file for the PIC 18F452 processor.
//
CODEPAGE NAME=config START=0x300000 END=0x30000D PROTECTED //processor
config words
CODEPAGE NAME=idlocs START=0x200000 END=0X200007 PROTECTED //ID words
CODEPAGE NAME=eedata START=0xF00000 END=0xF000FF PROTECTED //Initial
EEPROM data

CODEPAGE NAME=code0 START=0 END=0x7FFF //program memory

ACCESSBANK NAME=accessram START=0x0  END=0x7F PROTECTED //RAM part of
access bank

DATABANK NAME=bank0 START=0x080 END=0x0FF //register bank 0
DATABANK NAME=bank1 START=0x100 END=0x1FF //register bank 1
DATABANK NAME=bank2 START=0x200 END=0x2FF //register bank 2
DATABANK NAME=bank3 START=0x300 END=0x3FF //register bank 3
DATABANK NAME=bank4 START=0x400 END=0x4FF //register bank 4
DATABANK NAME=bank5 START=0x500 END=0x5FF //register bank 5

SECTION NAME=.udata_acs RAM=accessram //bank 0 part of the access bank
SECTION NAME=.BANK0 RAM=bank0 //for registers explicitly in bank 0
SECTION NAME=.BANK1 RAM=bank1 //for registers explicitly in bank 1
SECTION NAME=.BANK2 RAM=bank2 //for registers explicitly in bank 2
SECTION NAME=.BANK3 RAM=bank3 //for registers explicitly in bank 3
SECTION NAME=.BANK4 RAM=bank4 //for registers explicitly in bank 4
SECTION NAME=.BANK5 RAM=bank5 //for registers explicitly in bank 5


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

--
http://www.piclist.com hint: To leave the PICList
RemoveMEpiclist-unsubscribe-requestspamTakeThisOuTmitvma.mit.edu>

2003\02\21@045052 by o-8859-1?Q?Tony_K=FCbek?=

flavicon
face
Hi,

Olin Lathrop wrote:
>Hmm.  I'm a bit surprised by this too.  The linker does set the
accessbank
>bit properly for me on references to accessbank variables, but I
haven't
>tried it with overlays.  I noticed that you defined the linker section
>with DATABANK instead of ACCESSBANK as I do, although I've never tried
to
>allocate UDATA_SHR memory in teh ACCESSBANK linker section.
>
>For what it's worth, here is my linker control file for the 18F452:
<snip>

Thanks for the insight, I belive you are onto something, I was
so focused at the code so I never looked closely at the linker
control file. Anyway, while trying different setups in the linker control file
I recalled that there was a reason for the current setup. Namely
that any ram region *apart* from DATABANK will generate an error by the
linker.
For example:

..
ACCESSBANK      NAME=accessram                START=0x00    END=0x79
PROTECTED
SHAREBANK       NAME=acctemp          START=0x7A    END=0x7D
PROTECTED
..
SECTION         NAME=ACCESS_TEMP      RAM=acctemp
..

Generates:
"Error - section 'ACCESS_TEMP' has a memory 'acctemp' which is not
defined in the linker command file."

Another try with:
..
ACCESSBANK      NAME=accessram                START=0x00    END=0x79
PROTECTED
ACCESSBANK      NAME=acctemp          START=0x7A    END=0x7D
PROTECTED
..
SECTION         NAME=ACCESS_TEMP      RAM=acctemp
..

Generates the same error:
"Error - section 'ACCESS_TEMP' has a memory 'acctemp' which is not
defined in the linker command file."

But using the original structure:
..
ACCESSBANK      NAME=accessram                START=0x00    END=0x79
PROTECTED
DATABANK        NAME=acctemp          START=0x7A    END=0x7D
PROTECTED
..
SECTION         NAME=ACCESS_TEMP      RAM=acctemp
..

Generates no error.

Perhaps it's an limitation in the linker that does not allow me to
'abuse' the ram
regions they way I desire.And the only current solution is to manually
add the
',A' when access ram (in this region) is used. By using DATABANK region, it actually makes sense that BSR is used as
this is the documented
default behaviour when ',B' or ',A' is omitted. So perhaps my question
should instead be:

Can my goal be accomplished by some other means ?

I do want to partion the access ram to have three sections for different
use like:
ACCESSBANK      NAME=accessram                START=0x00    END=0x79
PROTECTED
ACCESSBANK      NAME=acctemp          START=0x7A    END=0x7D
PROTECTED
ACCESSBANK      NAME=accesstmpISR             START=0x7E    END=0x7F
PROTECTED        

Where 0x00-0x79 is 'general' access bank memory, 0x7A-0x7D is local temp
access ram and finally 0x7E-0x7F is access to be used inside isr only.

/Tony

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

2003\02\21@083305 by Olin Lathrop

face picon face
> Where 0x00-0x79 is 'general' access bank memory, 0x7A-0x7D
> is local temp access ram and finally 0x7E-0x7F is access to
> be used inside isr only.

Too bad you used quoted printable which made giving a more detailed reply
look like a mess.

Why do these need to be separate linker regions?  Why not declare the
whole access bank as one section, then define global variables that get
used as you describe.  Why do they need to be in particular locations?


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

2003\02\22@074233 by o-8859-1?Q?Tony_K=FCbek?=

flavicon
face
Hi,

Olin Lathrop wrote:
>Too bad you used quoted printable which made giving a more detailed
reply
>look like a mess.

[OT]:
Actually my client(outlook) *is* setup to use 'Unformatted text' as
output,
however I see two reasons why you get is as quoted printable.

A- Our company mail server(out of my control) changes the message
format.

B- I use another charset than you because I'm living in sweden there we
'special' swedish charaters. Your client perhaps does not like this
charset
or does not have it hence concider the format to be 'quoted printable'.

Either way, it's out of my control, belive me I've tried different
settings, but neither will give the desired result.

I appologise if that is unconvinient for you.

[PIC]:
>Why do these need to be separate linker regions?  Why not declare the
>whole access bank as one section, then define global variables that get
>used as you describe.  Why do they need to be in particular locations?

Main reason is to have control with overlayed data inside isr handler,
if I'm
confined to use one region only of access ram then I need to trust the
linker
to not use the same(overlayed) ram outside isr and inside isr. I do not
belive
the linker has this much intellligence.

If the same overlayed ram is used both outside and inside the isr then
is will
be corrupt as soon as an isr fires during outside use.
Bascilly my requirment is only two regions, one outside isr and one
inside isr.
However if this works I see no reason to have one additional region,
there
only overlayed data resides outside isr.

You mentioned that you have not had this problem then I trust you also
don't use overlayed ram inside isr ?

This project contains a *big* isr handler:
-24 bit A/D data collection (s/w spi), 24 bit 64 tap FIR filter, 24 bit
256 tap IIR filter
-Internal uart
-External uart (s/w spi MAX3100)
-I2C master -Internal 10bit A/D
-2 timers
- etc


As I don't need to have dedicated ram for each periphial handler, I use
overlayed ram for temp usage, all handlers shares this ram.

/Tony

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2003\02\22@081548 by michael brown

picon face
Tony Kübek wrote:
{Quote hidden}

No need to apoligize Tony.  It's not your problem, it's Olin's.  Your
e-mail is fully compliant with the standards.  ;-)  As usual, the
problem is with OE, it is quite simply broken.  If it were that much of
a problem to Olin, he would use the software that has been recommended
to him numerous times (oequotefix) or he would switch to a client that
is a little less dangerous and allot more compliant.  As you can see,
I'm using OE right now (with oequotefix) and it had no problem quoting
your message.

michael

PS:  I normally agree with allot of what Olin says, but this time he's
complaining to the wrong people for the wrong reasons.  Olin, please
install OEQuotefix, switch your client or please stop complaining about
this.

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2003\02\22@101201 by Olin Lathrop

face picon face
>> B- I use another charset than you because I'm living in sweden there we
'special' swedish charaters. Your client perhaps does not like this
charset or does not have it hence concider the format to be 'quoted
printable'.
<<

No, you are sending as quoted printable.  I checked the header.  The
non-US character set is almost certainly forcing this.  Other than the
U-umlaut (or whatever it's called in Swedish) in your name, there is
nothing in this message that couldn't have been sent in standard 7 bit
ASCII.

> Main reason is to have control with overlayed data inside
> isr handler,

I played with this a bit and came to the conclusion that the linker has a
bug where it does not allow overlayed sections in ACCESSBANK memory
regions, only DATABANK memory regions apparently.  I have already sent a
message with explanation and test case to Microchip.

However, there are other ways to achieve the same thing.  First, you can
do overlays not in the access bank, although that requires BSR set for
access and may no be appropriate for an interrupt routine.  Second, you
can declare a set of global registers exclusively for use by interrupt
routines.  My environment at http://www.embedinc.com/pic has built in
facilities for this, which I call IREGs.  You define the global constant
N_IREGS in the master include file, then use macro IREGS_DEFINE to define
them and declare them global in the interrupt module, and macro
EXTERN_IREGS to declare them external in any other module that accesses
them.  They will be named IREG0 - IREGn everywhere, but you could use
#define statements to give them unique aliases in different sections of
interrupt code.  The only real drawback is that you have to manually set
the number of IREGs, whereas the amount of RAM reserved for the overlays
would have been automatically set to the largest overlay.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2003\02\22@102848 by Olin Lathrop

face picon face
> No need to apoligize Tony.  It's not your problem, it's Olin's.

True the fault lies with OE.  However, nobody is owed a response here, and
if they want a better response from me they need to not use quoted
printable.  If they don't like it, too bad.  They can solve their own
problem.  I'll just go on to the next message (which is what I do most of
the time) or send an abbreviated response.  I probably spend too much time
on the PIClist already, and this is a simple way to weed out the unworthy
posts.

> (oequotefix)

I haven't gotten around to that yet.  I probably will, but I think I'm
stalling because I'm just a little nervous about installing another piece
of third party software, testing it out, fighting with the setting until
it does what I want, etc.  I may still do it anyway, but in the mean time
you'll just have to live with it.

On the other hand, sending plain text not using quoted printable is an
easy thing to do.  It will require using the ASCII character set, but this
is an English language list and that won't detract from messages here.  If
someone can't or won't, oh well.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2003\02\22@110117 by michael brown

picon face
Olin Lathrop wrote:
>> No need to apoligize Tony.  It's not your problem, it's Olin's.
>
> True the fault lies with OE.  However, nobody is owed a response
> here, and if they want a better response from me they need to not use
> quoted printable.  If they don't like it, too bad.  They can solve
> their own problem.  I'll just go on to the next message (which is
> what I do most of the time) or send an abbreviated response.  I
> probably spend too much time on the PIClist already, and this is a
> simple way to weed out the unworthy posts.

Unworthy posts?  I fail to see the logic in being judgmental of someones
posts just because "your" email client doesn't work properly, and "your"
vendor refuses to fix it.

>> (oequotefix)
>
> I haven't gotten around to that yet.  I probably will, but I think I'm
> stalling because I'm just a little nervous about installing another
> piece of third party software, testing it out, fighting with the
> setting until it does what I want, etc.  I may still do it anyway,
> but in the mean time you'll just have to live with it.

No flames intended, but I'm afraid that you are the one that is going to
have to live with the problem, since you "choose" to use OE.  You have
far more control over the situation than does Tony.  Given your
intelligence level, it shouldn't take more than ten minutes to install
and properly configure to program.  Certainly far less time than you
have spent griping about this over the months.

> On the other hand, sending plain text not using quoted printable is an
> easy thing to do.

As tony clearly stated, he does not have control over it.  He uses
Outlook and is quite likely to  be behind a MAPI server that just
happens to be written by the same incompetent software company that's
causing you grief.

> It will require using the ASCII character set, but
> this is an English language list and that won't detract from messages
> here.  If someone can't or won't, oh well.

Then please don't complain about it.  I'm sorry if this offends you as
that's not the intent, but I find it incredibly arrogant for anyone to
expect the entire planet to conform to the limitations of their
atrociously broken software.  I don't like the way OE mangles things
either, but I can't do much about it (other than installing OEQuotefix).
Try it, you'll like it.  ;-)

michael brown

"In the land of the blind, he who has one eye is king"

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2003\02\22@121435 by Olin Lathrop

face picon face
michael brown wrote:
> Unworthy posts?  I fail to see the logic in being judgmental of someones
> posts just because "your" email client doesn't work properly, and "your"
> vendor refuses to fix it.

You still don't get it.  You don't have to see the logic.  It's just a
rule from your point of view: If you want help from me, send mail the way
I say.  Whether you like it or not is irrelevant.  Remember the golden
rule: He who has the gold makes the rules.

> No flames intended, but I'm afraid that you are the one that is going to
> have to live with the problem, since you "choose" to use OE.

I don't have a problem.  People who want help from me and use quoted
printable have the problem.

> ... <irrelevant blah, blah deleted> ...
>
> I don't like the way OE mangles things
> either, but I can't do much about it (other than installing OEQuotefix).
> Try it, you'll like it.  ;-)

OK, I did read about and install it.  This is the very first reply
formatted using it.  Occasionally I have gotten messages from people whom
I'm not doing a favor for (they have the gold and make the rules, unlike
PIClist messages) where replying has been an annoyance.  I hope it doesn't
mess up something and become more trouble than it's worth.  Time will
tell.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2003\02\22@122809 by Andy Kunz

flavicon
face
>I haven't gotten around to that yet.  I probably will, but I think I'm
>stalling because I'm just a little nervous about installing another piece
>of third party software, testing it out, fighting with the setting until
>it does what I want, etc.  I may still do it anyway, but in the mean time
>you'll just have to live with it.

SHEESH!  Get Eudora already and be done with it.  OE is a great big
bullseye for every zitty little cracker-wannabe.  Why give them a target?!?!?

Andy

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2003\02\22@213152 by Mike Singer

picon face
Olin Lathrop wrote:
>...  Whether you like it or not is irrelevant.  Remember
> the golden rule: He who has the gold makes the rules...

In other words:   In Gold we trust.
Get them correct the typo on banknotes.

  Mike.

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2003\02\22@221835 by Charles Craft

picon face
As is typical with the quoted printables / printed quotables topic this thread is way off topic.

So I'll take it a little farther [OT]. :-)

Is there a mechanism to move Outlook and Outlook Express folders into Eudora? A couple years ago I was able to move sendmail folders into Eudora with no problem. I'm looking at consolidating email folders from OE on two laptops, Outlook from work and OE from a Win98 desktop. Any thoughts?


thanks
chuckc

--{Original Message removed}

2003\02\23@001026 by Jake Anderson

flavicon
face
ok I just did a *little* reading about this whole "quoted printable" mess

seems to me that if Olin is using OE at all then there would be no problem
OEquotefix wouldn't help him. I think that Olin is probably *not* using OE
at all

what it comes down to is (as far as my albeit limited reading goes)
back in the dim dark days (before I was born hehe just to make you feel old)
of 1981 when this whole
"E-Mail" thingie was being invented in the heart of America. it was decided
that they would just use the first 128 chars (the "ASCII" character set)
which was fine does A through z with a bunch of numbers and assorted
control chars thrown in. and it was good.
then the Frenchies and other silly people got involved and they wanted more
than 26 letters.
well actually they wanted to put little dots and squiggles over letters so
they could have their fancy names etc

only problem was that the email spec was already written and by this time
all around the world TRS-80's were serving vast amounts of Spam I mean
email to all these people.

so some smart fellah said hey if we put a little conversion thingo
in-between
what the person who is writing
the email is saying and what the server sees than all will be well. so they
came up with the idea of putting
this handy dandy piece of code in that took those funny e's with squiggles
and converted them into a string of
letters that the TRS-80's wouldn't mind. And it was good.

HOWEVER

they made one critical mistake. they assumed that at the other end the
person receiving the email would have
a similar chunk of code that would take the special piece of code and make
it back into squiggly e's and
the like. as we now find out. this is not happening in all cases (and in
others its just messed up IE mickysoft
and Mac interpret these codes differently just to make stuff fun). this is
the cause of the headaches.

thus "quoted printable" is most definitely NOT "the" standard
however it is definitely the "defacto standard" IE the one that *almost*
everybody uses.
as far as I can tell it must be a fairly archaic client not to support
quoted printable considering
that it is required if you are going to communicate with any country that
speaks any language other than
the kings English (well actually anything other than American "English"
;->).
communication across boundaries being one of the reasons for the popularity
of the internet and all.


{Original Message removed}

'[OT]: was Pic Incorrect bank access by assembler/l'
2003\02\23@022800 by cdb

flavicon
face
Goto the PocoMail website - there for free download is nifty little
program that converts all Oulook eml's to Text fromat so that most
3rd part email clients can import them.

Colin
--
cdb, bodgy1EraseMEspam.....optusnet.com.au on 23/02/2003

I have always been a few Dendrites short of an Axon and believe me it
shows.

Light travels faster than sound. That's why some people appear bright
until they speak!

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

'[OT]: email Re: [PIC]: Incorrect bank access by as'
2003\02\23@034802 by jim barchuk

flavicon
face
Hi Jake, Olin 'n All!

On Sun, 23 Feb 2003, Jake Anderson wrote:

> ok I just did a *little* reading about this whole "quoted printable" mess

I didn't, and probably won't. But I looked at a few other things.

> seems to me that if Olin is using OE at all then there would be no problem
> OEquotefix wouldn't help him. I think that Olin is probably *not* using OE
> at all

Sure he is, check the headers.

Regarding this q-p thingie, yours, for instance, come to me as (some
snipped):

Content-Type: text/plain; charset="iso-8859-1"
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MIME-Autoconverted: from 8bit to quoted-printable by
                     mail020.syd.optusnet.com.au id h1N590M26675

and later:

Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by jbarchuk.com id
   h1N5EXT27680

I *think* that means that you're sending some sort of 8bit message, that's
converted by optusnet, and converted back when it arrives here. Internet,
and email, certainly can handle 8 bit. I perfectly legible Korean and
Japanese spam every day. Unreadable to me but perfectly viewable. The 7
bit thing means that any mail server is -allowed- to send it back, or
convert it in some convenient way.

> HOWEVER
>
> they made one critical mistake. they assumed that at the other end the
> person receiving the email would have
> a similar chunk of code that would take the special piece of code and make
> it back into squiggly e's and
> the like. as we now find out. this is not happening in all cases (and in
> others its just messed up IE mickysoft

The true root of this problem is this, most common, which your message
carries:

Content-Type: text/plain; charset="iso-8859-1"

vs. Olin's which carry:

Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: 7bit

Which is 7bit, does -not- carry any q-p conversion references, and is
absolutely 100% 'legal' and allowed, according to w3.org.

Anyone who can't view those messages properly should visit
http://www.microsoft.com/globaldev/reference/cphome.mspx and follow the
Codepages - Windows and 1252 (Latin I) links. It says right there 'I am a
Win standard.' I can't find in there any instructions how to get OE to
recognise 1252 but it's got to be in there somewhere. Maybe Start -
Settings - Windows Update can coerce it automagically.

> and Mac interpret these codes differently just to make stuff fun). this is
> the cause of the headaches.

And the cure is Pine. :) Pure monospaced plain text, handles a little HTML
display, impervious to worms/viruses, links directly to Lynx (unintended
but cute homonym,) runs great under SSL (LAN/dialup/whatever) and quick as
a whip.

I've been wanting to comment on this since it appeared but decided to wait
to see how it played out:

{Quote hidden}

Olin, with the exception of having a different codepage/charset, which you
certainly -should- be perfectly free to use because it -is- a standard,
you are CORRECT ON ALL COUNTS. I tried a quote of one of your messages and
it worked perfectly.

If one copy of OE can't read what another copy of OE created well by golly
that's OE's problem and it should be able to fix itself. Mac is a
different odd story.

Have a :) day!

jb

--
jim barchuk
EraseMEjbspamjbarchuk.com

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

'[PIC]: Incorrect bank access by assembler/linker o'
2003\02\23@075907 by michael brown

picon face
Jake Anderson wrote:
> ok I just did a *little* reading about this whole "quoted printable"
> mess
>
> seems to me that if Olin is using OE at all then there would be no
> problem
> OEquotefix wouldn't help him. I think that Olin is probably *not*
> using OE
> at all

He most certainly is, just read the headers.

I'm using it right now because I'm forced to use windos to appease
Microchip and my PIC programmer.  At the rate the Microchip is moving
with their toolset, they should have a Linux version in about 25 years
or so.  ;-)

<snip for brevity>

> thus "quoted printable" is most definitely NOT "the" standard
> however it is definitely the "defacto standard" IE the one that
> *almost*
> everybody uses.

RFC 1521 section 5.1 says that it's a standard.  You don't consider the
RFC's to be mere suggestions, do you?  ;-)

> as far as I can tell it must be a fairly archaic client not to support
> quoted printable considering

It's not that his client doesn't support it, it's just that when you do
a reply using OE, the qp stuff doesn't get indented (quoted) no matter
how you set the client.  It's just a another in the long list of
deficiencies of OE.  :-(  My favorite is the "begin" issue, as it makes
for all kinds of fun.

http://support.microsoft.com/?kbid=265230

Some workaround, huh?  :-(((

<snip>

michael brown

"In the land of the blind, he who has one eye is king"

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2003\02\23@081244 by Olin Lathrop

face picon face
> seems to me that if Olin is using OE at all then there would be no
> problem OEquotefix wouldn't help him. I think that Olin is probably
> *not* using OE at all

I most definitely am using Microsoft Outlook Express 6.00.26 on Windows
2000.  OE interprets quoted printable and all those silly encoding schemes
just fine.  In fact, that's one of its strengths.  The problem is that for
some bizzarre reason known only to a twinky-eating computer knurd in
Redmond, OE does not properly seed the reply window when replying to a
message sent in quoted printable, despite any settings I can find.

As I mentioned in a previous message, I have now installed OEQuoteFix.  So
far it seems to fix this problem and otherwise behave itself, but it's too
soon to tell what problems it may have introduced.

> ...
> thus "quoted printable" is most definitely NOT "the" standard

Actually it is part of the newer MIME standards.  The original email
standard is RFC 821 (STD 10 ?), which supported pure 7 bit ASCII data
only.  There are several RFCs describing MIME and include quoted
printable, base64, and the like, but I don't remember their numbers off
the top of my head.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2003\02\23@084320 by michael brown

picon face
Olin Lathrop wrote:
>> seems to me that if Olin is using OE at all then there would be no
>> problem OEquotefix wouldn't help him. I think that Olin is probably
>> *not* using OE at all
>
> I most definitely am using Microsoft Outlook Express 6.00.26 on
> Windows 2000.  OE interprets quoted printable and all those silly
> encoding schemes just fine.  In fact, that's one of its strengths.
> The problem is that for some bizzarre reason known only to a twinky-
> eating computer knurd in Redmond, OE does not properly seed the reply
> window when replying to a message sent in quoted printable, despite
> any settings I can find.

lol

> As I mentioned in a previous message, I have now installed
> OEQuoteFix.  So far it seems to fix this problem and otherwise behave
> itself, but it's too soon to tell what problems it may have
> introduced.

AFAICT, I would be quite surprised if it were to cause any real
problems.  It may not always work perfectly (based upon my really old
version), but it shouldn't be able to do anything actually harmful.
AFAIK, it uses DDE to communicate with OE so it isn't directly
"attached" to OE or anything else.  IMO, it's sad that someone has to
create a tool like this.  BTW, how do you like the colorizing feature?

>> ...
>> thus "quoted printable" is most definitely NOT "the" standard
>
> Actually it is part of the newer MIME standards.  The original email
> standard is RFC 821 (STD 10 ?), which supported pure 7 bit ASCII data
> only.  There are several RFCs describing MIME and include quoted
> printable, base64, and the like, but I don't remember their numbers
> off the top of my head.

RFC1521 covers MIME extensions.

PS:  I'd tell you to let me know if you have any issues with it, but I'm
sure you will.  ;-)  Here's another good one, http://www.lavasoftusa.com
(ad-aware) run that and see what kind of parasites your computer has.
For web based virus checking, http://www.trend.com is very good (just remember
to click "scan without registering")

michael brown (who happens to hold a piece of gold or two)

"In the land of the blind, he who has one eye is king"

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2003\02\23@191607 by Dale Botkin

flavicon
face
begin

michael brown <RemoveMEspam-meEraseMEspamEraseMEHOUSTON.RR.COM> said:

> http://support.microsoft.com/?kbid=265230
>
> Some workaround, huh?  :-(((

Oh, now THAT's funny.  But some people may never know I said that.

8-)

Dale

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2003\02\23@193133 by Herbert Graf

flavicon
face
> michael brown <RemoveMEspam-mespam_OUTspamKILLspamHOUSTON.RR.COM> said:
>
> > http://support.microsoft.com/?kbid=265230
> >
> > Some workaround, huh?  :-(((
>
> Oh, now THAT's funny.  But some people may never know I said that.

       It truly is scary how lazy Microsoft is when implementing something that
should be SO simple...

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2003\02\23@193333 by michael brown

picon face
From: "Dale Botkin" <RemoveMEdaleTakeThisOuTspamspamBOTKIN.ORG>
To: <EraseMEPICLISTspamspamspamBeGoneMITVMA.MIT.EDU>
Sent: Sunday, February 23, 2003 6:14 PM
Subject: Re: [PIC]: Incorrect bank access by assembler/linker on 18xxxx


{Quote hidden}

The trick is to put two spaces after it and a file name.  Like this.
;-)

michael brown

begin  bignastyvirus.vbs

junk

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

'[OT]: Incorrect bank access by assembler/linker on'
2003\02\23@195029 by Dale Botkin

flavicon
face
begin  message:
michael brown <spam-meSTOPspamspamspam_OUTHOUSTON.RR.COM> said:

> The trick is to put two spaces after it and a file name.  Like this.

Yeah, probably right...  it was two spaces and a CR.  My mistake.  Enough,
though, this is definitely not [PIC]: material.  My apologies to all who
should not have had to read this.

--
Dale

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2003\02\25@052211 by o-8859-1?Q?Tony_K=FCbek?=

flavicon
face
Hi,
thanks for the input, in particuar Olin but also from the other
piclisters,
even though we have some disagrements on charsets and international
email :).

As it seems nobody else is using the linker the way I wanted, the point
is pretty moot,
but for postperity I decided to post the reply I recived from Microchip
regarding the matter:

>Hi Tony,
>
>MPASM currently does not have a directive to create an overlay access
>section.  Our best solution for now is to create an access section.
You
>can, however, create multiple symbols with the same value.
>
>SFR_UNBANKED0 UDATA_ACS H'F6B'
>
>FOO1
>BAR1    RES 1         ; 0xF6B
>FOO2
>BAR2    RES 1         ; 0xF6C

So in essence it's not possible with the current incarnation, but
perhaps (they never said
it would, but one can hope :) ) it will in the future.
I guess i need to go back to writing ,A or ,B wherever appropiate or
other means to fix it.

/Tony

--
http://www.piclist.com hint: To leave the PICList
spamBeGonepiclist-unsubscribe-requestSTOPspamspamEraseMEmitvma.mit.edu>


'[OT]: 'From' email addresses incorrect'
2003\10\05@122603 by Ian McLean
flavicon
face
This email is directed to whomever is managing the PIC List server.

I have noted that ALL individual's return email addresses are incorrectly
capitalised after the "on behalf of" part of the 'From' address.  The
account name is right, but the mail server domain name is capitalised when
it should not be, making it difficult for anyone on the list to email
someone directly if needed.

For example, my address reads in the 'From' address as:

pic microcontroller discussion list [KILLspamPICLISTspamBeGonespamMITVMA.MIT.EDU] on behalf of
Ian McLean [EraseMEianmmspamEraseMEOPTUSNET.COM.AU]

when in fact it should read as:

pic microcontroller discussion list [@spam@PICLIST@spam@spamspam_OUTMITVMA.MIT.EDU] on behalf of
Ian McLean [spamBeGoneianmmspamKILLspamoptusnet.com.au]

Could this be fixed ?

Rgs
Ian.

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2003\10\05@141801 by Dave Tweed

face
flavicon
face
Ian McLean <.....ianmmspam_OUTspamOPTUSNET.COM.AU> wrote:
> I have noted that ALL individual's return email addresses are incorrectly
> capitalised after the "on behalf of" part of the 'From' address.  The
> account name is right, but the mail server domain name is capitalised when
> it should not be, making it difficult for anyone on the list to email
> someone directly if needed.

Something is seriously broken in the email server you're using. Domain
names are not case-sensitive.

Note that the PICLIST server is correctly preserving the case of the
username part of the email address, which *might* be case-sensitive on
some systems.

-- Dave Tweed

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2003\10\05@143049 by Herbert Graf

flavicon
face
> This email is directed to whomever is managing the PIC List server.
>
> I have noted that ALL individual's return email addresses are incorrectly
> capitalised after the "on behalf of" part of the 'From' address.  The
> account name is right, but the mail server domain name is capitalised when
> it should not be, making it difficult for anyone on the list to email
> someone directly if needed.
>
> For example, my address reads in the 'From' address as:
>
> pic microcontroller discussion list [TakeThisOuTPICLIST.....spamTakeThisOuTMITVMA.MIT.EDU] on behalf of
> Ian McLean [TakeThisOuTianmmKILLspamspamspamOPTUSNET.COM.AU]
>
> when in fact it should read as:
>
> pic microcontroller discussion list [.....PICLISTspamRemoveMEMITVMA.MIT.EDU] on behalf of
> Ian McLean [RemoveMEianmmspamspamBeGoneoptusnet.com.au]
>
> Could this be fixed ?

       AFAIK domain names aren't case sensitive, http://www.piclist.com should resolve
the same as WWW.PICLIST.COM (and does on at least my system). Why
specifically is this causing you a problem? TTYL

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2003\10\05@152838 by Ian McLean

flavicon
face
It isn't causing me any problems.  Sorry about that.  Just strange how the
domain name is auto-capitalised in the 'From' address field.  It does not
happen from any other mailing list.

Regards
Ian.

{Original Message removed}


'[SX] Incorrect wakeup - WKPND_B ?'
2006\01\26@100149 by GG24_DCXn/a
flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, GG24_DCX wrote:

[2]
This is the 1st time I have used the SX in any developments. So with that, maybe I have mis-interpeted or just missed the information that explains the issue that I am having.

History:I have a complex data acquisition system that was designed in-house of which draws too much power even in it's sleep mode to leave for extended times in a vehicle. I added a simple design change which uses the SX28 at the front end to control the power to the rest of the system. It communicates with the DAQ to power down and also what woke it up. I also use 7 lines of the SX RB ports as edge wakeup lines. These are vehicle monitors. The unit always wakes just fine no matter which line requested it. I use the WKPND_B register to determine what line woke me up and send that info to the DAQ.

Problem:The problem is the WKPND_B is incorrect. What I found was if I set it for all H 2 L edges and the lines were being held high, the WKPND byte is correct. If I set all for L 2 H edges with pulldowns, all of the bits get set in the WKPND byte. The hardware configuration that I have(need) is RB.0-1 H2L with pullup on these lines and RB.2-6 L2H with pulldowns on those lines. The WKPND_B will give me a truth table for wakeup as follows:

RB.0 01111101
RB.1 01111110
RB.2 01111100
RB.3 01111100
RB.4 01111100
RB.5 01111100
RB.6 01111100
Again, if you set it up with all H2L edges with pullups, the truth table will be correct.

RB.0 00000001
RB.1 00000010
RB.2 00000100
RB.3 00001000
RB.4 00010000
RB.5 00100000
RB.6 01000000
HELP!  I've attached a piece of the code that doesn't work.  Idea's anyone?
[/2]
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\01\26@155619 by g_daubachn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, g_daubach wrote:

Hi.

I did not go through your code but to ma own experience, it is important to give the WKPND bits a "clean start" at power-on reset. I.e. after configuring the ports, and the wake-up edges, execute a mode $09
clr w
mov !rb, w sequence to clear all WKPNDB bits that might have been set due to transitions on the port B pins during power-up.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m106564
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\01\26@184959 by dkemppain/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, dkemppai wrote:

[Quoting: "Digital1010"]
[2]
roblem:The problem is the WKPND_B is incorrect. What I found was if I set it for all H 2 L edges and the lines were being held high, the WKPND byte is correct. If I set all for L 2 H edges with pulldowns, all of the bits get set in the WKPND byte. The hardware configuration that I have(need) is RB.0-1 H2L with pullup on these lines and RB.2-6 L2H with pulldowns on those lines. The WKPND_B will give me a truth table for wakeup as follows:

RB.0 [/2]


I had a similar problem about 1/2 year ago. Going from memory (i.e. take this with a grain of salt) I seem to remember it stems from the direction of pins changing on wakeup. You may have to do some testing to prove/disprove this.


From my recollection, I had to do some testing to determine how the pins cycle on wakeup, and I determined that I could not rely on the WKPND_B register to tell where my wakeup came from. I ended up doing a hardware redesign, to force one of my pins to hold the logic state they had before wakeup, so that I could determine the status of pins after wakeup.


I remember it being a screwey situation, and I had to pound the datasheets hard and write some test code to determine what was going on. Long story short, my solution ended up being hardware...


Also, sorry I don't have my notes here to remember exactly what was going on....   ...I will try to look at them and get back to you if I have a chance next week.


-Dan
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m106581
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\01\27@045452 by GG24_DCXn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, GG24_DCX wrote:

Thanks Guenther, I have cleared it several different ways and it is clearing.

I agree with Dkemppai.  I have searched the data sheets and I don't think it works the way it is portrayed.  Since my hardware design is already implemented, I'm thinking about not putting it to sleep, running at 32khz and just using the edge mode and trying to mask the bits to capture which line requests the DAQ system.  I can do that with approx. 8-9ma as to the origianal 3ma with sleep mode.

If anyone does see how to make it work the right way............

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m106613
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\01\27@054201 by dkemppain/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, dkemppai wrote:

[Quoting: "Digital1010"]
Thanks Guenther, I have cleared it several different ways and it is clearing.

I agree with Dkemppai. I have searched the data sheets and I don't think it works the way it is portrayed. Since my hardware design is already implemented, I'm thinking about not putting it to sleep, running at 32khz and just using the edge mode and trying to mask the bits to capture which line requests the DAQ system. I can do that with approx. 8-9ma as to the origianal 3ma with sleep mode.

If anyone does see how to make it work the right way............


FYI, In sleep mode, with everything done correctly, you can get down to approximatley 10uA at 3.3Volts.

Dropping the system voltage will help the to lower the power a lot...


Good luck!


-Dan


P.S. Parallax, If you guys ever get a chance, It would really be really nice to see FAQs and some example code for low power sleep mode operation. Wakeup on edge detect (rising and falling), and how to implement such a wakeup correctly, etc. (In ASM, and SX/B of course :)
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m106618
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\01\27@075618 by GG24_DCXn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, GG24_DCX wrote:

Yes, I was able to go into the sleep mode but i have a few external devices that are still drawing around the 3ma(fully acceptable).  Unfortunately I was hoping to be able to use the WKPND bits with my mix of edges to determine what woke me up and now it's seems that I can't rely on the WKPND (with mixed edges).  So I will have to run continous in a low current mode to know which lines are requesting service.

Thanks and I'll keep watch for a sleep fix.  I can't believe we're the only ones that have encountered this problem and I can't change hardware at this time $$$$$ for board changes and production runs
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m106639
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\01\27@103741 by dkemppain/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, dkemppai wrote:

[Quoting: "Digital1010"]
Yes, I was able to go into the sleep mode but i have a few external devices that are still drawing around the 3ma(fully acceptable). Unfortunately I was hoping to be able to use the WKPND bits with my mix of edges to determine what woke me up and now it's seems that I can't rely on the WKPND (with mixed edges). So I will have to run continous in a low current mode to know which lines are requesting service.

Thanks and I'll keep watch for a sleep fix. I can't believe we're the only ones that have encountered this problem and I can't change hardware at this time $$$$$ for board changes and production runs

Yeah, I don't think that many people have tried to use the wkpnd_b to determing hte source of a wakeup. Fortunatley, I was still in the hardware design stage when I was testing my code, so a hardware change was
quick and easy.


My device was a minature low power device that needed a lot of processing power at intermittent invervals, so the SX was a good fit. I just wish I could have utilized the wkpnd to determine the source.


-Dan
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m106676
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\01\27@110423 by GG24_DCXn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, GG24_DCX wrote:

Thanks for your info.  It is a nice micro but I thought I was going crazy and was missing the obvious, but apparently not...

GG
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m106681
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\01\28@154725 by mojorizingn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, mojorizing wrote:

Are you using the internal pullups on your H2L inputs?  If so, the WKPND_B won't reflect the correct source of the interrupts on all the pins configured with the internal pull ups.  The pull up resistors must be external. It's not explicitly mentioned but all the info in http://www.parallax.com/dl/docs/prod/sx/SxUsersManualV31.pdf in section 4.4 is correct.  The WKPND_B is unchanged when waking up from sleep.  Also realize that it takes approx. 18 milliseconds to wake up from sleep, so if you're planning on capturing data on a wake up you'll have to accomodate for this , or stay awake.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m106828
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\01\30@082327 by GG24_DCXn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, GG24_DCX wrote:

Thanks for the reply
You would be correct in that the pull up resistors are external.  And you are correct regarding the examples shown in 4.4.  I have used those examples and they work.  The problem is the example only does a "High to Low" and not a "Low to High" and if you only look a single bit that you are toggling, you will think everything is great, however if you look at the truth table in my 1st message, no matter which wake up I toggle, all of the L2H lines (RB2-6) show up as if they have been toggled (I physically monitored RB0-6 with a Yokogawa DL7480.. They are not toggling!).  As far as the wakeup time, that is not a problem, I only need to know what woke the unit up so that I can record that.  Timing is not that critical there(with in reason).  Just as a reference I did a simple circuit on the SX proto board with simple pullups on RB0-1 and pulldowns on RB2-6. No other components to possibly influence in any other way and I still get the same truth table from the WK_PND_B  
I may be programming it wrong but I have tried every way and every example that I can find with no luck all though I tend to be a Harware guy, not software.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m107084
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\01\30@105650 by mojorizingn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, mojorizing wrote:

The bad news is you're right.  All the L2H lines configured for rising edge wake up will show toggled in the WK_PND_B after waking up when only one of the lines is actually toggled.  Interesting.  I have no explaination or work around, and I don't recall this ever being mentioned in the docs. or the now defunct user group in yahoo.....  
You can always invert the input before it reaches the SX, but you mentioned you're locked into your hardware already.

The good news is (according to a recent TV commercial) this is where I should say, " but I saved a boat load of money on my car insurance by going with Geico...... :turn:

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m107129
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\01\30@130426 by GG24_DCXn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, GG24_DCX wrote:

Well I like your humor!  Can't cry over it although I thought that at least I would here from a parallax person on the subject...  Hmmm
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m107150
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\01\30@231827 by Tracy Allenn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Tracy Allen wrote:

I verified your observation today, using an SX48 instead of an SX28.   There was a chance the they might be different.  
But not--Upon port B wakeup from SLEEP, the bits configured to detect LOW to HIGH transitions were all set in wkpdn_b, no matter which bit actually caused the wakeup.   Bits configured to detect HIGH to LOW transitions worked as expected, and retained good information about which bit caused the wakeup/interrupt.   As in your truth table.  And without SLEEP, both edges retained good information.

Weird.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m107238
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\01\31@104923 by g_daubachn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, g_daubach wrote:

To which level have you tied the input pins that do _not_ cause a wakeup. Are they pulled low or high by external resistors, or are they floating?

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m107315
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\01\31@115319 by Tracy Allenn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Tracy Allen wrote:

In my setup on an SX48, rb0 to rb3 were configured as inputs and configured for wakeup on edges.  The other port b pins rb4 to rb7 were configured as outputs.   rb0 to rb3 had pushbutton switches with external 10k pullups with 0.01uf for debounce, so action would take place on either the push or the release, depending on the wked_b setting.    Internal pullups were not enabled.   Port ra.2 was used to transmit serial data to the terminal, to observe states.  Other ports ra - re were in some kind of inactive condition, either outputs or inputs with pullups, no signals present.

As Digital1010 observed, the pins rb0 to rb3 all cause wakeup just fine, no matter which edge is configured.   The unexpected aspect of this is the effect low to high transitions have on the individual bits in wkpnd_b.  I had not noticed that before. I've only dealt with 1->0 transitions, which work as expected.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m107331
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\01\31@122838 by GG24_DCXn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, GG24_DCX wrote:

If you are asking about RB.7 which is the only wakeup line that I don't use, it is floating although I do not enable it as a wakeup in my software.  It probably wouldn't hurt to test RB.7 pulled low even though it's not used.  Stranger things have happened!!!!

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m107338
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)


'[SX] Incorrect wakeup - WKPND_B ?'
2006\02\02@135550 by Tracy Allenn/a
flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Tracy Allen wrote:

I've attached my test program, which sends its ascii debug data out at ra.2.   It is configured to look at rb0, rb1, rb2 and rb3, and to wake up on either edge, rising or falling.   It detects both edges by stuffing the current value of rb into the WKED edge register just before sleep.

This illustrates the "bug" in question in another way.  Suppose the 4 inputs are all active low with pullups.   That works fine when you press and release one button at a time. The program wakes on either edge, and the wkpnd register comes back with the correct bit set for the button pressed.  
However, if you press and hold down one of the buttons (state=low), while you press and release a second button, things get dicey.   Wake up happens as it should, but the wkpnd register continues to hold a 1 in the bit for the first button, even though its state has not changed.   Wkpnd also shows the bit corresponding to the second button, the one that really did cause the wakeup.  But the program can't sort out from wkpnd alone which pin caused the wakeup.   If you then release the first button (state=high), wkpnd will still show its bit, as it should, and you have to press a different button before the first button's wkpnd bit will return to zero.  
So, in summary, any input that is low at wakeup causes its corresponding wkpnd bit to be set high, even if there was no edge on that input.

It can be sorted out by looking at the current contents of rb and comparing with the past contents, provided the high and low states are long enough in duration.   If the inputs are short pulses, and you can't rewire the board, maybe a capacitor for pulse stretching could be hacked in.

I don't know any secret way around this.   I agree it needs to be better documented.

The wakeup is very sensitive to noise and contact bounce.   Best use schmitt trigger input configurations, and good RC debounce.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m107718
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\02\03@062612 by GG24_DCXn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, GG24_DCX wrote:

Thanks Tracy.  I downloaded the file and will play around with it.  I'll have to look a little closer at the dynamic of the signals that are coming in.  Some keep their logic state but others switch.  Let me experiment with your idea.  I already have some RC on each pin to minimize noise.  I finialized my current code for simple signal indicating whether it was a power up or a wakeup with the hopes that I can later reflash with full wakeup information.  My 1st batch of 350 are coming in next week and I'm under the gun..

Just hit your web site, Very nice!!

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m107813
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\02\03@160339 by amillern/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, amiller wrote:

A quick look at your code shows that you are looping back to Main after the sleep. The first thing you do in Main is to change the values of the ports, THEN read your pending triggers.  
Could this be causing your problems.  Save your list of pending triggers before looping to Main, or loop to the code after the port initializations.

You have also enabled wakeup on an output pin, rb.4. This may cause problems as above.

You probably also want to turn on the internal pullups for the input pins, just to be safe.

BTW, if you ever turn on those interupts, you are going to have contention within your serial output code.

I hope this helps,
-AGM-
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m107954
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\02\04@070632 by dkemppain/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, dkemppai wrote:

So, in summary, any input that is low at wakeup causes its corresponding wkpnd bit to be set high, even if there was no edge on that input.

It can be sorted out by looking at the current contents of rb and comparing with the past contents, provided the high and low states are long enough in duration. If the inputs are short pulses, and you can't rewire the board, maybe a capacitor for pulse stretching could be hacked in.

I don't know any secret way around this. I agree it needs to be better documented.




[2]
I'm really glad that some other people are looking into this bug. I was pulling my hair out last summer, and no one believed me!

I believe that parallax needs to fully document this oddity. I know that when I go to use the wakeup feature again, I will have forgotten everything that was discussed in this thread.

Also, have any you run into the bug where you need to manually shadow output before going into sleep mode? If you enter sleep mode, output states are lost. You need to read and store then before going to sleep, then restore them upon wakeup. Even then, some outputs will have glitches on them. [/2]
-Dan
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m108010
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\02\04@104202 by Tracy Allenn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Tracy Allen wrote:

To be sure it would work, I modified the demo program to detect transisitons using a state machine dependent on current state, past state and operators, XOR, AND.  That replaces the problematic wkpnd_b register to indicate which input caused the event.    The program displays the contents of rb, wkpnd_b, and the state variables for all transistions, 0->1 transitions, and 1->0 transitions.  WKEN_B is enabled to wake up on change, even though the contents of wkpnd_b are not useful.

Andrew, I tried your suggestions.   Moving the capture of wkpnd_b up before the port initializations did not make a difference.  The wakeup on output pin rb4 was an artifact of trying out too many alternatives.   As it stands now, it is using rb0-rb2 and rb7 as wakeup inputs.   On rb pins initialized as outputs, wkpnd_b returns a zero for outputs iniitialized high, and a one for outputs initialized low.   I did turn on the pullups in this version, but that did not make a difference.   In my setup, there are external pullups and RC debounce.  This should also work with external pulldowns (with internal pullups off).

I see you're right about the interrupt, that it could clobber the serial code.   Interrupts are not enabled in this program, but that would have to be taken care of if they were.  If the program needs to test for transitions while the program is awake, it could run the state machine code in an ISR, or it could run that same code frequently enough in the main loop.  
In a program that stays awake, the wkpnd_b register works okay to detect transitions.  It is problematic only after wakeup from SLEEP.

Dan, I think the SX series have the same glitch as the PIC16C5x series, that all the outputs briefly become inputs when the chip wakes up from SLEEP.   This gap is 18 milliseconds on the SX20 and SX28, and it can be reduced to as short as 0.15 millisecond on the SX48 and SX52.  I'm puzzled by the issue of having to manually restore the outputs.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106511#m108031
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)


'[PIC] MPSIM Showing Incorrect Values'
2008\12\20@201152 by solarwind
picon face
Screenshot: http://img372.imageshack.us/img372/8228/scrn4qc2.jpg

The code should make PORTC 0xFF but the SFR watch on the right shows
some weird value. Why is it doing that? I ran it several times, no
difference, same weird value.

--
solarwind

2008\12\20@201341 by solarwind

picon face
And look what this is doing:

img518.imageshack.us/img518/5858/scrn5bs3.jpg

2008\12\20@212711 by William \Chops\ Westfield

face picon face
On Dec 20, 2008, at 5:13 PM, solarwind wrote:

> And look what this is doing:
> http://img518.imageshack.us/img518/5858/scrn5bs3.jpg

There are those warnings about "register in operand not in bank 0",
that appear to be associated with the movwf to the PORTx registers.
As far as I know, the PORTz registers ARE in bank 0, so those raise
a sort of alarm.  Could you have an incorrect .inc file somehow?
Take a look at the hex code generated in the listing file (or in mplab),
and see if the values of the registers in actual code seem to match
what they should be...

BillW

2008\12\20@213731 by Jinx

face picon face
> > img518.imageshack.us/img518/5858/scrn5bs3.jpg
>
> There are those warnings about "register in operand not in bank 0",

You *can* choose not see them

errorlevel -302 ;MPLAB bank warning suppression

!!! CAVEAT EMPTOR !!!

Warnings aren't necessarily true, but you may miss a real one with
error suppression

2008\12\20@213823 by Jinx

face picon face

> Screenshot: http://img372.imageshack.us/img372/8228/scrn4qc2.jpg

banksel please, not RP0 fiddling

banksel trisa

banksel porta

etc

2008\12\20@214804 by solarwind

picon face
Same problem (when using banksel)
img291.imageshack.us/my.php?image=scrn6lx6.png

2008\12\20@214824 by solarwind

picon face
On Sat, Dec 20, 2008 at 9:48 PM, solarwind <spamBeGonex.solarwind.x@spam@spamspam_OUTgmail.com> wrote:
> Same problem (when using banksel)
> http://img291.imageshack.us/my.php?image=scrn6lx6.png
>

http://img291.imageshack.us/img291/2056/scrn6lx6.png



--
solarwind

2008\12\20@215017 by solarwind

picon face
On Sat, Dec 20, 2008 at 9:26 PM, William Chops Westfield <TakeThisOuTwestfwspamspammac.com> wrote:
> There are those warnings about "register in operand not in bank 0",
> that appear to be associated with the movwf to the PORTx registers.
> As far as I know, the PORTz registers ARE in bank 0, so those raise
> a sort of alarm.  Could you have an incorrect .inc file somehow?
> Take a look at the hex code generated in the listing file (or in mplab),
> and see if the values of the registers in actual code seem to match
> what they should be...
>
> BillW


The inc files are correct...



--
solarwind

2008\12\20@220813 by Jinx

face picon face
> Same problem (when using banksel)
> http://img291.imageshack.us/my.php?image=scrn6lx6.png

I have perfectly good projects that generate 302 warnings if they
aren't suppressed

eg something I just tried

144         banksel trisa
145        movlw   b'00000110'
146
147;                     0        spare
148;                      0       red LED Fine limit
149;                       1      Vref                  Comparator2 V-
150;                        1     motor sense resistor  Comparator2 V+
151;                         0    power relay
152
153         movwf  trisa

Message[302] C:\VARPROP\VPDONE\VP628_32.ASM 153 : Register in
operand not in bank 0.  Ensure that bank bits are correct

Note that message isn't telling you that something is wrong. All it's saying is that
the register accessed isn't in Bank0 and that you should check to make sure the
bank is selected to access it

>From memory it doesn't work the other way. ie if you've been access a register
in Bank1 it doesn't warn you that the bank should be changed if you try to access
a Bank0 register. Which is a bit lame

2008\12\20@221318 by solarwind

picon face
I honestly do not care about the warning. But why is the SFR watch
showing wrong values?

2008\12\20@221948 by solarwind

picon face
This MPLAB debugger is completly useless. bcf and bsf instructions are
doing absolutely nothing and the sfr watch is not showing their
effect.

2008\12\20@230303 by apptech

face
flavicon
face
> This MPLAB debugger is completly useless. bcf and bsf instructions are
> doing absolutely nothing and the sfr watch is not showing their
> effect.

When a tool which others recommend is found to be completely useless then
it's often an indication that you need to either get new advisers or to look
closely at what you are doing. Categorising a tool as "completely useless"
when other people find it not so runs the risk of psychologically blinding
yourself to hints of what is happening.
eg I get error xxx, the tool must be broken.
vs
" I get error xxx, what am I doing wrong".
But, "is completely usefless" may have just been a figure of speech.


   Russell


2008\12\20@231551 by jim

flavicon
face
Solarwind,

This may be an incorrect conclusion, but I don't see any initialization of
the chip.
The ports may have analog functions as well as other functions that may
cause
results other than what you expect.

Check it out.


Jim







{Original Message removed}

2008\12\20@233113 by Jinx

face picon face
> the sfr watch is not showing their effect

Have you tried adding the SFRs to Watch ?

If you do that, and then do this

        movlw   b'00000000'
        movwf   trisb

        movlw   0xa5
        movwf   latb

what appears in Watch is (note : 18F has LAT and no banks)

TRISB 0x00
LATB 0xA5
PORTB 0xA5



2008\12\21@001125 by solarwind

picon face
On Sat, Dec 20, 2008 at 11:29 PM, Jinx <joecolquittEraseMEspamclear.net.nz> wrote:
>> the sfr watch is not showing their effect
>
> Have you tried adding the SFRs to Watch ?


Still fail: img377.imageshack.us/img377/9084/scrn7ae0.png
--
solarwind

2008\12\21@001137 by solarwind

picon face
How can such a tool be useful when it is malfunctioning?

2008\12\21@005502 by Matthew Mucker

flavicon
face
Only a beginner assumes the tool is malfunctioning when he doesn't get the
results he expects.

Those of us with experience have learned that it is far, Far, FAR more
likely that the tool is correct, and that we have done something wrong.

So... review your code. Review the datasheet. Ask yourself, "what could I be
doing, or be not doing, that would cause actual result X when I'm expecting
result Y?"

The chances that the mismatch is due to an error in the simulator is
vanishingly small. The chances that the mismatch is due to something that a
newcomer to PIC programming has overlooked is overwhelmingly large.

Now, I have not programmed on the PIC16 chips and I'm not going to spend the
time to dig through the datasheet right now, but I recommend that you insert
a BANKSEL TRISC before line 13 and a BANKSEL PORTC instruction before line
17 in your code. I see that you've set RP0 in your code but I don't see you
initializing RP1.  The BANKSEL compiler directive ensures these bits are set
correctly.

OK, OK, I downloaded the datasheet... look at Example 4-4 in the datasheet
for guidance.

The second thing I would recommend is to determine if the PORTC pins are
shared with any peripherals.  If they are, determine whether or not you must
disable those peripherals first.

Most importantly, though, you should realize what a rash conclusion you've
jumped to by assuming that the tool is malfunctioning instead of assuming
that your code is not doing what you think it's doing.  This is almost
always an incorrect assumption.

> -----Original Message-----
> From: RemoveMEpiclist-bouncesEraseMEspamspam_OUTmit.edu [@spam@piclist-bouncesRemoveMEspamEraseMEmit.edu] On
> Behalf Of solarwind
> Sent: Saturday, December 20, 2008 11:12 PM
> To: Microcontroller discussion list - Public.
> Subject: Re: [PIC] MPSIM Showing Incorrect Values
>
> How can such a tool be useful when it is malfunctioning?
> -

2008\12\21@005751 by William \Chops\ Westfield

face picon face

On Dec 20, 2008, at 8:15 PM, jim wrote:

> I don't see any initialization of the chip.  The ports may have  
> analog functions as well as other functions that may cause results  
> other than what you expect.

What?  He's STILL not initializing the analog functions?  That was  
recommended several problems ago!  Sigh...

Although my impression was that PORTx would end up containing values  
written to it even if the analog peripheral settings prevented those  
values from reaching the actual pins.  Perhaps not in the simulator?

>> There are those warnings about "register in operand not in bank 0"
> You *can* choose not see them
> Errorlevel -302 ;MPLAB bank warning suppression

Well yes, but he seems to be getting these warnings for PORTa, PORTb,  
PORTc, which ARE in bank 0!  (well, in several banks, but bank0 for  
backward compatibility with low end chips...)

BillW

2008\12\21@011959 by solarwind

picon face
Sigh... I coped and pasted the example DIRECT from microchip
themselves... Same error. Stop jumping to conclusions and consider
that the simulator *could* have a bug in it?

Ran similar code in HI-TIDE. It's working perfectly.

2008\12\21@012932 by Marcel Birthelmer

picon face
On Sat, Dec 20, 2008 at 10:19 PM, solarwind <EraseMEx.solarwind.xspam@spam@gmail.com> wrote:

> Sigh... I coped and pasted the example DIRECT from microchip
> themselves... Same error. Stop jumping to conclusions and consider
> that the simulator *could* have a bug in it?
>
> Ran similar code in HI-TIDE. It's working perfectly.
>

You could look at the asm output of the C compiler and compare it to the asm
code you're running to see if there's any differences... I wouldn't be
terribly surprised if the compiler does some initialization stuff for you.
(That's assuming you're using a C compiler in Hi-Tide of course)
- Marcel

2008\12\21@013609 by Daniel Serpell

picon face
Hi,

On Sun, Dec 21, 2008 at 3:19 AM, solarwind <@spam@x.solarwind.xspam_OUTspam.....gmail.com> wrote:
>
> Sigh... I coped and pasted the example DIRECT from microchip
> themselves... Same error. Stop jumping to conclusions and consider
> that the simulator *could* have a bug in it?
>
> Ran similar code in HI-TIDE. It's working perfectly.
>

Then, Hi-TIDE has a bug, probably is not simulating correctly.

Look at the datasheet (of 16f690), page 79, figure 4-16, it shows that if
analog input mode is true, you read always a 0 from PORTC bit 7.

You repeatedly failed to listen to all the advices in this list.

  Daniel.

2008\12\21@021526 by solarwind

picon face
On Sun, Dec 21, 2008 at 1:35 AM, Daniel Serpell
<spamBeGonedaniel.serpellEraseMEspamgmail.com> wrote:
> Then, Hi-TIDE has a bug, probably is not simulating correctly.
>
> Look at the datasheet (of 16f690), page 79, figure 4-16, it shows that if
> analog input mode is true, you read always a 0 from PORTC bit 7.
>
> You repeatedly failed to listen to all the advices in this list.
>
>   Daniel.

I love you for life.

I was doing ANSEL = 0x00 and ANSELH = 0x00 in HI-TIDE and forgot to do
it in MPLAB. But I didn't think it would make a difference since:

a) It worked perfectly in real life.
b) Microchip's own example worked perfectly in real life but not in
the simulator. But it worked in PIC Simulator IDE
c) Microchip made the example so I trusted them...
d) I got varying results from different simulators and real life.
e) C rules.
f) ASM rules.

Sorry and thank you once again.


--
solarwind

2008\12\21@021624 by solarwind

picon face
But it's not the first time mpsim had bugs. Who's to say which
simulator had bugs?

2008\12\21@021758 by solarwind

picon face
Also, why would Microchip not include these in their example code? And
why did it work in real life perfectly?


--
solarwind

2008\12\21@024350 by Forrest W Christian

flavicon
face
solarwind wrote:
> How can such a tool be useful when it is malfunctioning?
>  
The tool is *not* malfunctioning.

If you read the datasheet:

Port A is being read as 0b00110000. Bits 6 and 7 are "Unimplemented,
read as zero". If you read section 4.2.1, you will also find that "Pins
with the ANSx bit set always read ‘0’, which can cause unexpected
behavior when executing read or write operations on the port due to the
read-modify-write sequence of all such operations.". In addition, if you
read the note in section 4.1, you will find "Note: The ANSEL register
must be initialized to configure an analog channel as a digital
input. Pins configured as analog inputs will read ‘0’.". In addition,
"Note 1" on the register Register 4-3 description on page 1 also says
"Note: The ANSEL register must be initialized to configure an analog
channel as a digital input. Pins configured as analog inputs will read
‘0’." Bits 0,1 and 2 are Analog inputs, and the ANSEL bits default to 1.
Bit 3 is multiplexed with MCLR and is always an input, no matter the
setting of the TRIS register. I expect it is reading '0' as a result of
this multiplexing.

Ports B and C have similar issues.

I just re-checked my email and I see that you discovered that this is
your problem.

I also see you asked why the sample code didn't initialize the ports
correctly..... If you'll look at Example 4-4 on page 76 of the datasheet
for this pic, you will find the following code:

BCF STATUS,RP0 ;Bank 0
BCF STATUS,RP1 ;
CLRF PORTC ;Init PORTC
BSF STATUS,RP1 ;Bank 2
CLRF ANSEL ;digital I/O
BSF STATUS,RP0 ;Bank 1
BCF STATUS,RP1 ;
MOVLW 0Ch ;Set RC<3:2> as inputs
MOVWF TRISC ;and set RC<5:4,1:0>
;as outputs
BCF STATUS,RP0 ;Bank 0

Which looks suspiciously like correct initialization code for PORTC on
this processor.

I think what you need to learn from this exercise is to *carefully* read
all of the relevant sections datasheet and understand it. (Geez, I'm
starting to sound like Olin). I realize it is difficult to know what
part of the datasheet to look at, but I have found that generally if you
are facing a pin which isn't working correctly that if you carefully
read the sections about that pin, and the functions on that pin, you
will generally find something you can turn off or on which defaults to
the "wrong" value for what you are trying to do.

-forrest

2008\12\21@024855 by Forrest W Christian

flavicon
face
solarwind wrote:
> Also, why would Microchip not include these in their example code? And
> why did it work in real life perfectly?
>  
1) They did - look at the datasheet
2) I am skeptical that the code as presented actually worked as you
think it did in the actual PIC.  Try blinking the leds instead of just
setting them.  Sometimes you think you are turning a led on when
something else is happening electrically.   If you blink them, then you
can tell for sure that you're setting them and then clearing them
instead of just seeing them turn on as a side effect of the pic powering on.

-forrest

2008\12\21@025839 by Tamas Rudnai

face picon face
> This MPLAB debugger is completly useless. bcf and bsf instructions are
> doing absolutely nothing and the sfr watch is not showing their
> effect.

So you built a test circuit with LEDs on PORTC and you can see the correct
results on the circuit but not in simulator?

Tamas


On Sun, Dec 21, 2008 at 3:19 AM, solarwind <x.solarwind.xspamBeGonespamgmail.com> wrote:

> This MPLAB debugger is completly useless. bcf and bsf instructions are
> doing absolutely nothing and the sfr watch is not showing their
> effect.
> -

2008\12\21@034803 by solarwind

picon face
On Sun, Dec 21, 2008 at 2:58 AM, Tamas Rudnai <RemoveMEtamas.rudnai@spam@spamspamBeGonegmail.com> wrote:
> So you built a test circuit with LEDs on PORTC and you can see the correct
> results on the circuit but not in simulator?
>
> Tamas

LPC Demo Board, yes.

@ Forrest, take a look at LPC Demo Board examples, you'll see that
their examples DO NOT initialize ANSEL and ANSELH.

2008\12\21@044441 by Forrest W Christian

flavicon
face
solarwind wrote:
> @ Forrest, take a look at LPC Demo Board examples, you'll see that
> their examples DO NOT initialize ANSEL and ANSELH.
Ok, so microchip screwed up...  My guess:  The user guide got about as
much attention as some of the application notes get, the best example
being AN621 ( http://ww1.microchip.com/downloads/en/AppNotes/00521c.pdf
) which isn't something anyone should even consider doing in the way
they described....

There is also the real possibilty that the actual silicon does not
conform to the datasheet, and the simulator does, although I don't see
anything in the Errata for the 16f690 which would imply this to be the
case.  But, most people who program PIC's professionally know to
initialize the ADC appropriately, so this is one silicon errata that
could be missed for a *long* time since proper initialization of the PIC
includes setting ANSEL and ANSELH.

And finally,  Documentation is sometimes just plain wrong.   People are
human and as a such, sometimes errors happen.   If you want to feel
really smart, send a note to Microchip pointing out their error in the
sample code, of course trying to be as tactful as possible :)   If that
is possible....

-forrest




2008\12\21@045833 by Harry H. Arends

flavicon
face
Maybe becourse its example code and not real production code?

Harry

{Quote hidden}

> -

2008\12\21@050303 by Jan-Erik Soderholm

face picon face
Daniel Serpell wrote:
> Hi,
>
> On Sun, Dec 21, 2008 at 3:19 AM, solarwind <.....x.solarwind.xSTOPspamspam@spam@gmail.com> wrote:
>> Sigh... I coped and pasted the example DIRECT from microchip
>> themselves... Same error. Stop jumping to conclusions and consider
>> that the simulator *could* have a bug in it?
>>
>> Ran similar code in HI-TIDE. It's working perfectly.
>>
>
> Then, Hi-TIDE has a bug, probably is not simulating correctly.

Daniel is 100% right here !

MPSIM shows PORTC *exactly* as the code itself whould have
"seen" (read) the port. What was written (and what is actualy
on the physical pins) is of less interest, it's what would
have been read from the PORTC register that matters.

It also better matches what an in-circuit debugger such as
IDC2 whould have reported back, as far as I understand. It
has to read the actual register and send whatever it "sees"
back to MPLAB. MPSIM just tries to do the same.

I personaly find this a better simulation, since it also
clearly shows the lack of proper setup of the chip. It
also closely follows what the datasheet actauly says, if
one happens to read it...

I do have a bunch on comments on "solarwind" in other
aspects, but never mind...


2008\12\21@050835 by Jan-Erik Soderholm

face picon face
solarwind wrote:
> On Sun, Dec 21, 2008 at 1:35 AM, Daniel Serpell
> <daniel.serpellEraseMEspam@spam@gmail.com> wrote:
>> Then, Hi-TIDE has a bug, probably is not simulating correctly.
>>
>> Look at the datasheet (of 16f690), page 79, figure 4-16, it shows that if
>> analog input mode is true, you read always a 0 from PORTC bit 7.
>>
>> You repeatedly failed to listen to all the advices in this list.
>>
>>   Daniel.
>
> I love you for life.
>
> I was doing ANSEL = 0x00 and ANSELH = 0x00 in HI-TIDE and forgot to do
> it in MPLAB.

You forgot what
1) has been told you a number of times
2) is very clearly spelled out in the datasheet.
Did you learn anything ?

>But I didn't think it would make a difference since:
>
> a) It worked perfectly in real life.

It seemed so. The PIC will drive the pins, but the pin-values
can not be read back. Which is what happens in real-life, and
what MPSIM also told you.

> b) Microchip's own example worked perfectly in real life but not in
> the simulator. But it worked in PIC Simulator IDE

And you know why now, right ?

> c) Microchip made the example so I trusted them...

Another error... :-)

> d) I got varying results from different simulators and real life.

No, you did not.


2008\12\21@053249 by Forrest W Christian

flavicon
face
Jan-Erik Soderholm wrote:
> It seemed so. The PIC will drive the pins, but the pin-values can not
> be read back. Which is what happens in real-life, and what MPSIM also
> told you.
Now *I* learned something...  although on the other hand, I may have
already known this if I would have thought about it, since I knew that
you could actually drive an output high with the ADC on, and then
read-back the voltage on the pin using the ADC.

-forrest

2008\12\21@093155 by olin piclist

face picon face
solarwind wrote:
> The code should make PORTC 0xFF but the SFR watch on the right shows
> some weird value. Why is it doing that?

At least three possible causes come immediately to mind, all of which you
have been told about several times before.

Before asking new questions, implement the answers you've gotten from
previous questions.


********************************************************************
Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products
(978) 742-9014.  Gold level PIC consultants since 2000.

2008\12\21@093736 by olin piclist

face picon face
solarwind wrote:
> I honestly do not care about the warning. But why is the SFR watch
> showing wrong values?

Perhaps because you ignored a clue provided by a warning?


********************************************************************
Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products
(978) 742-9014.  Gold level PIC consultants since 2000.

2008\12\21@093910 by olin piclist

face picon face
solarwind wrote:
> This MPLAB debugger is completly useless.

It has worked great for me for over 100 PIC projects.  You'll never find the
mistake *you* are making with this attitude.

> bcf and bsf instructions are
> doing absolutely nothing and the sfr watch is not showing their
> effect.

Nonsense.


********************************************************************
Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products
(978) 742-9014.  Gold level PIC consultants since 2000.

2008\12\21@094504 by olin piclist

face picon face
William Chops" Westfield" wrote:
> Although my impression was that PORTx would end up containing values
> written to it even if the analog peripheral settings prevented those
> values from reaching the actual pins.

The PORT registers reflect the live pin values.  You would be right for LAT
registers (on those PICs that have LAT registers).


********************************************************************
Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products
(978) 742-9014.  Gold level PIC consultants since 2000.

2008\12\21@094747 by olin piclist

face picon face
solarwind wrote:
> Also, why would Microchip not include these in their example code?

1: They could be demonstrating a specific point and didn't want to confuse
that point by messing with analog peripherals.

2: The code could be for a different chip that doesn't have analog
peripherals on that port.

3: The example could be wrong.


********************************************************************
Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products
(978) 742-9014.  Gold level PIC consultants since 2000.

2008\12\21@101252 by Thomas C Sefranek

flavicon
face
A agree with Olin, the debugger is INVALUABLE for my large designs some of
which encorporating 75
or more PICs.
 *
 |  __O    Thomas C. Sefranek  RemoveMEtcsspamspamBeGonecmcorp.com
 |_-\<,_   Amateur Radio Operator: WA1RHP
 (*)/ (*)  Bicycle mobile on 145.41, 448.625 MHz

ARRL Instructor, Technical Specialist, VE Contact.
hamradio.cmcorp.com/inventory/Inventory.html
http://www.harvardrepeater.org
{Original Message removed}

2008\12\21@231125 by William \Chops\ Westfield

face picon face

On Dec 21, 2008, at 6:43 AM, Olin Lathrop wrote:

>> Although my impression was that PORTx would end up containing values
>> written to it even if the analog peripheral settings prevented those
>> values from reaching the actual pins.
>
> The PORT registers reflect the live pin values.  You would be right  
> for LAT
> registers (on those PICs that have LAT registers).

Ah, of course.  That should have been obvious, given the RMW issues  
and so on.  I got confused in comparison with other architectures,  
that effectively default to the LAT-style behavior.  Not enough actual  
PIC programming in my recent history, alas.

This is why *I* have been putting up with SolarWind's rather  
sophomoric behavior.  His questions are forcing me to expand my  
understanding of the internals of the PICs and simulators and so on.  
It's almost a parody of why I prefer piclist to other forums; most  
places you ask a question and you either get an answer or you get  
silence.  PIClist evolves educational discussions (often with and  
along tangents.)  The recent discussions have been much TOO chatty and  
"immediate" - more thought (and "cool down" time) should be expended  
on all sides.  But it's still been a pretty educational exchange, once  
the chaff is removed.  I suspect I'm not alone.  (that, and  
"allowances for youth.")

BillW

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