Click here to Skip to main content
14,487,806 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: Dear oh dear Pin
RickZeeland23-Feb-20 2:33
mveRickZeeland23-Feb-20 2:33 
GeneralRe: Dear oh dear Pin
dandy7223-Feb-20 2:50
Memberdandy7223-Feb-20 2:50 
GeneralRe: Dear oh dear Pin
H.Brydon23-Feb-20 14:50
professionalH.Brydon23-Feb-20 14:50 
GeneralRe: Dear oh dear Pin
Clumpco23-Feb-20 23:49
MemberClumpco23-Feb-20 23:49 
GeneralRe: Dear oh dear Pin
FreedMalloc24-Feb-20 5:09
MemberFreedMalloc24-Feb-20 5:09 
GeneralRe: Dear oh dear Pin
Sander Rossel24-Feb-20 0:25
professionalSander Rossel24-Feb-20 0:25 
GeneralRe: Dear oh dear Pin
phil.o24-Feb-20 6:09
mvephil.o24-Feb-20 6:09 
GeneralCounting bus cycles and nanoseconds, part 2 Pin
CodeWraith23-Feb-20 0:49
MemberCodeWraith23-Feb-20 0:49 
I did not have much time this week for MacGuyvered serial I/O on MacGuyver's processor. We had only this week to 'MacGuyver' together a working prototype of something that our customer only got nice six digit estimates for elsewhere. 'Macguyvering' is a broad field and unless you are professor for and against everything (or yor name really is MacGuyver), you have no choice but to train this skill a little. Look at Q&A if you want to see what happens if you don't.

Anyway, The serial I/0 now works fine. 9600 bps at 6 MHz clock frequency. Half duplex, of course. I don't want to have to work out the timing for a subroutine to pull off full duplex. Having an emulator for the old Elf that actually emulates both the Elf and the terminal and their interaction precisely was really helpful. I was able to develop a formula to calculate the timing constants for the subroutines at different clock frequencies and bitrates. I could conveniently test everything with the emulator. If my values worked there, then the Zwölf and the PC also could live with them. Every time. My compliments to those who wrote that emulator, did not cut corners and went through the trouble to emulate both sides extremely accurately.

And now something for all MacGuyvers here. A programming question:

I need a way to let the processor measure its own clock frequency. With that, I could calculate the timing constants for the serial I/O at initialization and let the processor find the highest possible bitrate, no matter how slow or fast it is clocked. With an independent reference, like a timer or a real time clock, that would not be a big deal. But without?
I have lived with several Zen masters - all of them were cats.

His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.


modified 23-Feb-20 7:48am.

GeneralRe: Counting bus cycles and nanosecons, part 2 Pin
Daniel Pfeffer23-Feb-20 1:05
professionalDaniel Pfeffer23-Feb-20 1:05 
GeneralRe: Counting bus cycles and nanosecons, part 2 Pin
0x01AA23-Feb-20 1:39
professional0x01AA23-Feb-20 1:39 
GeneralRe: Counting bus cycles and nanosecons, part 2 Pin
Daniel Pfeffer23-Feb-20 1:41
professionalDaniel Pfeffer23-Feb-20 1:41 
JokeRe: Counting bus cycles and nanosecons, part 2 Pin
0x01AA23-Feb-20 4:04
professional0x01AA23-Feb-20 4:04 
GeneralRe: Counting bus cycles and nanoseconds, part 2 Pin
CodeWraith23-Feb-20 1:40
MemberCodeWraith23-Feb-20 1:40 
GeneralRe: Counting bus cycles and nanoseconds, part 2 Pin
Mircea Neacsu23-Feb-20 4:59
MemberMircea Neacsu23-Feb-20 4:59 
GeneralRe: Counting bus cycles and nanoseconds, part 2 Pin
CodeWraith23-Feb-20 6:06
MemberCodeWraith23-Feb-20 6:06 
JokeRe: Counting bus cycles and nanosecons, part 2 Pin
Nelek23-Feb-20 1:45
protectorNelek23-Feb-20 1:45 
GeneralRe: Counting bus cycles and nanosecons, part 2 Pin
honey the codewitch23-Feb-20 1:46
mvahoney the codewitch23-Feb-20 1:46 
GeneralRe: Counting bus cycles and nanosecons, part 2 Pin
CodeWraith23-Feb-20 2:13
MemberCodeWraith23-Feb-20 2:13 
GeneralRe: Counting bus cycles and nanosecons, part 2 Pin
honey the codewitch23-Feb-20 2:49
mvahoney the codewitch23-Feb-20 2:49 
GeneralRe: Counting bus cycles and nanosecons, part 2 Pin
CodeWraith23-Feb-20 4:04
MemberCodeWraith23-Feb-20 4:04 
GeneralRe: Counting bus cycles and nanosecons, part 2 Pin
honey the codewitch23-Feb-20 6:20
mvahoney the codewitch23-Feb-20 6:20 
GeneralRe: Counting bus cycles and nanosecons, part 2 Pin
CodeWraith23-Feb-20 6:34
MemberCodeWraith23-Feb-20 6:34 
GeneralRe: Counting bus cycles and nanosecons, part 2 Pin
honey the codewitch23-Feb-20 6:35
mvahoney the codewitch23-Feb-20 6:35 
GeneralRe: Counting bus cycles and nanosecons, part 2 Pin
CodeWraith23-Feb-20 7:01
MemberCodeWraith23-Feb-20 7:01 
GeneralRe: Counting bus cycles and nanosecons, part 2 Pin
honey the codewitch23-Feb-20 7:23
mvahoney the codewitch23-Feb-20 7:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.