Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 06:04 03 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : DIN @ 3.2v, insists it is zero....

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 03:46am 24 Jul 2017
Copy link to clipboard 
Print this post

This has me a bit lost.

MM+ E64, external 4k7 SIL pull-up array, connected to an MCT6 dual opto-coupler.

When the opto is active, and it's transistor is pulled down, the input is zero - exactly as it should be.

When you remove the DC from the MCT6 LED, the MM+ I/O pin goes high, but the MM+ only reads this as 0.00322581

This number is always the same, and across any other pins I setup as inputs.

Has anyone seen this, cos it has me baffled - it should be working, but isn't.
The voltages are correct on the pins, but MMBASIC responds with this really odd result.



Edited by Grogster 2017-07-25
Smoke makes things work. When the smoke gets out, it stops!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 04:23am 24 Jul 2017
Copy link to clipboard 
Print this post

UPDATE: Perhaps we had a corrupted firmware somehow? I flashed the latest into the E64, and everything is as it should be - no odd results for the digital inputs.





My brain hurts.
"Homer sleep now....."
Smoke makes things work. When the smoke gets out, it stops!
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2290
Posted: 05:04am 24 Jul 2017
Copy link to clipboard 
Print this post

3.3/1023=0.00322581


cheers,
rob :-)
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 02:12pm 24 Jul 2017
Copy link to clipboard 
Print this post

OK - how the hell was MMBASIC deciding to do it that way I wonder?

I've never seen that behaviour before. This particular E64 I have used for several things during testing, so it is indeed possible I corrupted it somehow, some way.

It's OK now once reflashed, which is all that matters.
Smoke makes things work. When the smoke gets out, it stops!
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 03:16pm 24 Jul 2017
Copy link to clipboard 
Print this post

Now the question is: How it did get corrupted in the first place.
A reflash should never have to be done.
In all my years(decades) of experience i never ever needed to reflash a chip to get it working again.
A reflash would indicate a hardware failure in the chip which is very unlikely.
And if it is , better discard the chip as it will happen again.
My feeling is that it is software that somehow corrupts the flash contents.

My only reasoning that it happens is that it happens while during a power brownout. To prevent that use a supervisory chip.

Edited by MicroBlocks 2017-07-26
Microblocks. Build with logic.
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2290
Posted: 03:20pm 24 Jul 2017
Copy link to clipboard 
Print this post

somehow it was taking the logic '1' and deciding it needed to interpret it as an analog value (that ranges between 0 and 1023). i guess there is an internal table within mmbasic (in RAM) that tells how to interpret each pin - as analog, digital, counter input, etc., and that this was corrupted. i presume resetting and/or cycling power did not fix the issue; perhaps the corruption was in the code that initialized this table upon power up?


cheers,
rob :-)
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 04:39pm 24 Jul 2017
Copy link to clipboard 
Print this post

No, resetting the power DID NOT clear the problem. Reflashing did.
This unit did have the ALPHA for the PLAY WAV on it at one point in time(the board was labelled as such), so it is indeed possible that the alpha for this was perhaps causing some issue - who knows - that's what I will put it down to at this stage, as an alpha can be notoriously unstable.

No problems since reflashing to the latest stable anyway. Hopefully it will stay that way now.
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5911
Posted: 05:08pm 24 Jul 2017
Copy link to clipboard 
Print this post

I think that is bug that was found and squashed.
I forget which version fixed it.

Either that or it's getting too wet over there!

Jim
VK7JH
MMedit   MMBasic Help
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 07:10pm 24 Jul 2017
Copy link to clipboard 
Print this post

Yes, we did get rather a good dumping of H2O from Mother Nature over the weekend.
175mm in 24 hours, they are saying. Biggest rainfall in July since 1918 when the records started for our area.

Lots of water....
Smoke makes things work. When the smoke gets out, it stops!
 
GoodToGo!

Senior Member

Joined: 23/04/2017
Location: Australia
Posts: 188
Posted: 09:43pm 24 Jul 2017
Copy link to clipboard 
Print this post

Feel free to send some water our way. One pretty dry winter over here...
Mind you it means we're having some absolute cracker sunny days

GTG!
...... Don't worry mate, it'll be GoodToGo!
 
viscomjim
Guru

Joined: 08/01/2014
Location: United States
Posts: 925
Posted: 06:59am 25 Jul 2017
Copy link to clipboard 
Print this post

I may be wrong, but it seems like your silkscreen says... Ajust voltages and THEN install jumpers. You might want to adjust this before you go to pcb...

Ajust is a caustic blend that helps sustain a pH range that is ideal for controlling pathogens in the chiller. Ajust is used in conjunction with Peragonn or Protec, allowing their antimicrobial activity to be maintained for a longer period of time. It also has approval for usage in organic processing.Edited by viscomjim 2017-07-26
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 09:18pm 25 Jul 2017
Copy link to clipboard 
Print this post

WELL SPOTTED!!!!

I only got five of these PCB's made, as they are as big as the 7" LCD they are paired up with, and that size board is expensive. Surprised(and annoyed!) that I miss-spelled that! Edited by Grogster 2017-07-27
Smoke makes things work. When the smoke gets out, it stops!
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 1985
Posted: 11:12pm 25 Jul 2017
Copy link to clipboard 
Print this post

  viscomjim said  
Ajust is a caustic blend that h...


for the love of god don't google it!!! (like I did)
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024