and just an idea ...
What if you make transmission a bit slowlier ??? ... (DEFINE SHIFT_PAUSEUS 100 i.e. )
Alain
and just an idea ...
What if you make transmission a bit slowlier ??? ... (DEFINE SHIFT_PAUSEUS 100 i.e. )
Alain
<img src=http://www.picbasic.co.uk/forum/attachment.php?attachmentid=439&stc=1>
Last edited by mister_e; - 22nd August 2005 at 02:27.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
thanks for all the responses.
So the problem has come back again. One thing i've done is to re-initialise the maxims, every now and again, so at least they come back to life eventually. but it's far from an ideal solution.
I have put a pause in as Acetronics suggests (although i need the speed) and they do keep going for much longer. but eventually they too, pack up (!)
the speed, yes, maybe this is the issue. i guess most people don't want to change them so rapidly...
Looking at the data sheet, I presume i need to consider the Pulse Width High (which is 50nS)? How can i calculate the right pauses and when to put them, to put the pic in synch with the maxims?
Sorry, i'm sure this is all pretty basic stuff...
any further thoughts, i'd be happy to hear them,
best, Helen
Last edited by helenevans; - 22nd August 2005 at 00:25.
ARRGH i didn't notice how you did your code...
you mustCode:for digit = 1 to 5 current = LOOKUPl digit, [byt_03,byt_04,byt_05,byt_06,byt_07] SHIFTOUT datapin, clkpin, MSBFIRST, [digit] 'digit adress SHIFTOUT datapin, clkpin, MSBFIRST, [current] 'digit data PULSOUT load1, 3 next
enable the load line
use the shiftout
disable the load line
how about using something like
but more than likelyCode:for digit = 1 to 5 current = LOOKUPl digit, [byt_03,byt_04,byt_05,byt_06,byt_07] LOW Load1 SHIFTOUT datapin, clkpin, MSBFIRST, [digit] 'digit adress SHIFTOUT datapin, clkpin, MSBFIRST, [current] 'digit data HiGH load1 PAUSE 10 next
EDIT: It remind me a previous post => http://www.picbasic.co.uk/forum/show...tach%2A+max%2ACode:for digit = 1 to 5 current = LOOKUPl digit, [byt_03,byt_04,byt_05,byt_06,byt_07] LOW Load1 SHIFTOUT datapin, clkpin, MSBFIRST, [digit,current] HiGH load1 PAUSE 10 next
Last edited by mister_e; - 22nd August 2005 at 02:35.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
hmm, thanks for that.
i was really hopeful, but it still doesn't solve the problem.
I was wondering if its worth getting hold of a max7221, perhaps they are more robust against EM interference?
I have currently testing with two separate rows of 5 digits (each with their own pic). there is definately some kind of current flow problem as when one come on, the other will die etc.
the other post, is interesting as the problem is very similar. However, i have already put the two capacitors between the 5v and the gnd . Any harm in increasing the values?
further thoughts, always welcome![]()
mmm, i should buy few of those one day!
No harm if you raise the cap value of course. BUT is the voltage regulator gives enough power? Is he come really hot. Those crapy 7805 will ruine your life when they comes hot !!!
A separate voltage regulator for the MAX could work... well case by case i guess!
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks