T
Thanks, i could be wrong, but with DALI i think the random number generator is to do with giving address's to lamps. Do you agree?Unless there is a random lighting mode (multi color 'mood lighting' perhaps) I can't see why a random number generator is needed.
Thanks, and i take it you mean the fact that inputs which arent tied (or pulled up) to ground or power will "Invite" noise issues in the microcontroller?4. Floating inputs are a BAD idea but before shooting the software author, check they have not enabled internal pull-ups or similar.
Thanks for clearing that one up. Another point for us is that the micro and control circuitry is fed from a high voltage (LR8) linear regulator from the HV DC Bus…..as such we need to keep power consumption of the control circuitry as low as possible…and with a 16MHz oscillator, the micro is pulling more current than if lower osc frequency. We wonder just how low we could go with the micro osc frequency and still be able to receive the broadcasted DALI signals?……we don’t have to transmit back.Fast clock just means faster software operation but is not more susceptible to noise.
I would have to know a lot more about the product to comment on that. How addresses are allocated would depend on individual designs. There is no advantage in using random addresses, it would be just as fast to cycle through them all in sequence but for a lamp to be able to avoid an address collision it would need a method to talk back to the controller to announce it had recognized itself being addressed. If all it does is adopt a random address only known to itself there would be a high risk of clashes, especially if sub-nets are on the same circuit.Thanks, i could be wrong, but with DALI i think the random number generator is to do with giving address's to lamps. Do you agree?
Yes, but don't get paranoid about noise. A floating input is certainly more likely to be damaged or produce a random logic level but that is primarily because they have such high input impedances. Even a 1M resistor to VSS or VDD would remove almost all the risk. The biggest danger with a floating input is unpredictable software behavior if it uses input from that pin/port or triggering of random interrupts if the pin has that ability. Good software would mask out any signal from an unused input and certainly not allocate that pin as a source of interrupts or counter clocks. There is some sense in configuring unused pins as outputs and driving them to a low or high state, it ensures there is a low impedance discharge path and no external resistor is needed.Thanks, and i take it you mean the fact that inputs which arent tied (or pulled up) to ground or power will "Invite" noise issues in the microcontroller?
…and with a 16MHz oscillator, the micro is pulling more current than if lower osc frequency. We wonder just how low we could go with the micro osc frequency and still be able to receive the broadcasted DALI signals?……we don’t have to transmit back.
Could we have a micro oscillator set to about 100kHz and still receive the DALI dimming commands which are at 1200bits/sec?
Thanks, we have no line filters on our offline led driver. That is, no filter caps or inductors on the AC side of the rectifier bridge. We have some capacitance on the DC side of the bridge rectifier , and we do have decoupling capacitrs on the Micro's Vdd rail.It could come in on the power supply. That can easily be stopped by suitable hardware design and bypass capacitors, line filters etc.
Thanks, we have non-properly-working software in our led lamps, they are very simple and the only complex software they do is the DALI protocol. The programmer has set the PIC16F1947 clock frequency to 32MHz…..that’s a period of just 31ns………………I just imagine that the rise time of the pulses is a significant part of the high and low times, and therefore, we cannot help but suspect that sometimes noise will mean a 'low' is not correctly interpreted, or a 'high' not “seen”?Fast clock just means faster software operation but is not more susceptible to noise.
Thanks….we were thinking that at a higher clock rate, there are more clock edges per second, and therefore, more chances of a narrow noise pulse corrupting an instruction, and crashing the software?...simply because there are more clock edges per second to be corrupted1. supply borne noise and clock frequency have no correlation. Fast clock just means faster software operation but is not more susceptible to noise.
It doesn't work like that. When you are dealing with serial communication you sample the input at regular intervals, preferably using a timer to set the interval duration. Whatever logic level gets sampled is the one it uses but faster edge detection doesn't increase the chances of finding an unwanted glitch in the signal. If you want to filter the waveform in software you can but I very much doubt it is necessary. To do it, read the input several times (3 at least) and use whichever polarity it sees most.more chances of a narrow noise pulse corrupting an instruction, and crashing the software?
Think about how the MCU uses the clock: your MCU requires 4 clock pulses for each instruction. There is nothing special about each clock pulse ad the instruction can start based on any one of them(at power up). If there *IS* an extra clock pulse seen by the MCU then it *might* use that to advance the performance of one step of the 4 steps for each instruction.Thanks, in this case i was referring to micrcontrollers clock speed, rather than serial comms, and how micro's with a faster clock rate would be more likely to crash because there are more clock edges per second, and so more chances for a narrow noise pulse to corrupt a clock edge and crash the software.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?