DickCappels
- Joined Aug 21, 2008
- 10,661
Chuck Peddle is the father of both the 6800 and then the 6500. It is not a councidence that they are similar in many ways.
That will suit you fine. You want to think in baby steps.OK, my experience with interrupts is minimal. Most of my assy coding was short subroutines to speed up BASIC code.So where do I find the opcode set so I can begin my first baby steps in assy. Starting off what is the CPU I should plan on using? A website would be great. Thank you.
As I understand it 6502 and 6800 CPUs are cousins, correct?
BTW I still think in BASIC.
In terms of CPU efficiency it doesn't matter either way.Cost counts, as does the learning curve. I've been putting background thought in the project itself, While in count mode it would be better to count in simple binary? Then convert the binary number into BCD for display decoding? Or count in BCD in the MCU? The former would be much faster I should think. The latter slower but simpler to program, especially for the 7 segment display.
yep. Don't ever try LISP, COBOL or FORTH. APL (A programming Language) is still better than LISP.I'm not a complete novice in coding.Having said that I find learning a new language intimidating.
Simple speed is most important, hardware will supplement the MCU counter/display I am after a simple counter/display at this point.In terms of CPU efficiency it doesn't matter either way.
The standard method is to count in binary and convert to BCD for display.
What is your maximum input clock frequency?
What is your minimum input clock frequency?
Are you interested in frequency and period or simply total count?
I studied all of the above, including SNOBAL, ALGOL, Pascal.yep. Don't ever try LISP, COBOL or FORTH. APL (A programming Language) is still better than LISP.
LabView is totally weird. It's based on data flow. VI's as they are called, execute when all the data is available. very easy to write parallel processes. Since it isn't sequential unless forced, you have the possibility of "race conditions" in software.
LOGO is baffling right now.
I have a long list including assembly languages.
Count in binary. But note in the code, you deal with the decimal value; not binary. . On a MCU, conversion to BCD is much easier than with discrete logic. Here’s a function in C, that returns the lowest digit in BCD of any integer. Call it repeatedly until the number is zero. The function value is the BCD digit.Cost counts, as does the learning curve. I've been putting background thought in the project itself, While in count mode it would be better to count in simple binary? Then convert the binary number into BCD for display decoding? Or count in BCD in the MCU? The former would be much faster I should think. The latter slower but simpler to program, especially for the 7 segment display.
byte Decimal2BCD(int *Num) {
int tmpNum = Num;
Num = Num / 10;
return Decimal2BCD =
tmpNum % 10;
}
... and on the RCA1802.I miss the old decimal mode in the 6502. Setting that bit determines whether the ALU works in binary or decimal. It was very handy.