be80be
Well-Known Member
misterT said the same thing. And
no but people do LOLComputers don't do "random",
Last edited:
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
no but people do LOLComputers don't do "random",
I don't think Mr RB suggested the Black RNG was pure random, just that it had better entropy.
Yes he did. In the website he says: "My algorithm for generating pure entropic (random) data" and "After enough passes the data is completely random and cannot be predicted."
There is a RNG here that generates very good entropy from a simple algorithm although it is not particularly time efficient; The Black Random number generator
Mr RB didn't say that, Mr Black did.
It seems that hardly anyone codes in primarily assembly anymore, yet I've read pretty much everywhere that assembly code seems to be much more efficient than C.
I started pic programming with assembly.
It was a good way to start in my opinion. Learn to set up the chips, the clock speeds, the timing, the interrupts and so on.
But when you want to read numerous analogue inputs, consult maps stored in eeprom, set the duty cycle based on the resulting lookup figure and finally output it to lcd for debugging, something like C would be a lot easier.
However if you start with C, you might regret it, as you never quite escape the registers and you might find yourself missing little blocklets of information that get your project working.
I think what i'm trying to describe perhaps is 'hardware appreciation'. If you are aware of the task your C modules are performing you might also be aware of it's strengths and limits, especially when it comes to common modules that say, overwrite registers for others or whatever.
So a bit of assembly helps. No need to be a genius at it, just be able to guesstimate whats going on underneath your code.
It's just my philosophy of matters, I'm no great shakes at asm or C but I think a little of both is perhaps a good help.
and finally, never go overkill. If you can write a solution that works in C then forget assembly. If you can write a solution in flowcode forget C. Yes it arguably ain't proper but your aim is the solution. Just take time to have a bit of understanding.
This IMO is the well balanced approach to programming, bit like knowing whats happening under the hood of your car and not just being a driver...
It's the sort of situation I'm in, I can do a little assembly, do a little C, but it turns out that combined I can't do a right lot. Shame eh? by all means I'm learning but you have to be careful not to fall into that trap.
IPerhaps you are confusing ASM with understanding what each bit in a SFR is used for. In C we can use RegNam=0xValue. You do not need ASM to set bitsYou have to stay with one thing. I'm glade I learned asm it sure helps setting up chips.
I agree. C is a cracking language for that.
In all fairness I don't think my problem is too severe that a decent book can't sort out. I'm just a tight git.
I need to spend some time and start doing things the hard way and empower myself
I'm very fussy about compilers mind, how hard is it to port code between two? don't they use different libraries for common functions (say, interfacing with hd44780 lcd's for instance)
IPerhaps you are confusing ASM with understanding what each bit in a SFR is used for. In C we can use RegNam=0xValue. You do not need ASM to set bits
Most micro-controller coding is in assembler, not in C.
To use C on a micro controller you need to know both C and you need to know the micro controller peripherals. It does not matter what language you attempt to program in if you can not or will not look at the documentation.be said:Ok how many post are on here I'm using C and my adc don't work or I can't blink a led or my pin not a output Or I don't no what ICSP is