??? 06/13/07 15:39 Read: times |
#140689 - Are you certain that applies? Responding to: ???'s previous message |
Maarten Brock said:
I know of only one 100 MHz 8051 derivative: SiLabs C8051F12x. They all have a PCA with frequency output mode, timers with output mode and can also route SYSCLK to an output pin. I don't see how this eats all your cpu resources.
Maarten You're right, Maarten, it doesn't consume all your bandwidth if you happen to use the PCA in this way. However, isn't it silly to select an MCU for just one feature when the requirement is so poorly defined as this one? The SiLabs parts are pretty expensive for one to choose it just because he doesn't know a better way to generate a 10 MHz clock. I doubt that Purushottam Dayama is even aware of that feature. My comment asserts that it is nonsense to pursue this requirement in such a way, given that the requirement is so poorly defined. Consider the nonsense that Purushottam Dayama presented in that other thread, claiming that HC logic wouldn't work at speeds above 10 MHz or whatever, and suggesting that the load presented by an HCMOS gate is comparable with multimeter probes. I doubt that Purushottam Dayama is aware of the PCA, nor do I believe he's considered that as an option. I am curious, too, as to how the PCA, opeating from it s 100 MHz system clock, can produce a 10 MHz output on a port pin. The PCA description starts on page 326 of the datasheet, and I'm unable to find, right off, a way that's listed, that can do that. Given that it can use the system clock (100 MHz) or the system clock/4 or the system clock/12 as a timebase, I'd be interested to see how one would wind up with a 10 MHz clock on a device pin without making considerably more compromises than just programming a counter and routing its output. Erik Malund said:
NONSENSE! The fast MCU will produce a 10 MHz clock only if you do something explicit to force it to do so. With only 10 instruction cycles per 100 ns output clock cycle, it can't really do much else. Would you consume nearly all the bandwidth of your MCU just to produce that one clock? Nonsense?, well let's have a look this is a 'speed demon' so no resource restrictions apply 1) the port where the data pin resides has no other use 2) the output is in an array where 6 bits of each byte is unused, one bit, the position of which correspond to the data output pin, is used for data and another bit in the data array is set for all but the last byte. 3)the last bit output will be zero (could be handled but not in the 3 minutes I am willing to spend) loop: clr CLOCK 2 mov a,@R0 2 inc R0 1 mov port,a 2 setb CLOCK 2 jz loop 2 OK it is 11 cycles, not 10, but this is 3 mimnutes of development, I guess another hour could reduce it to 10 Erik I doubt you'd be willing to use that much (100%, if you can get there) of your bandwidth to produce a simple 10 MHz clock. There are other ways, and those don't consume MCU bandwidth or costly hardware resources. If it's otherwise justifiable to use the relatively costly SiLabs 'F12x, then I freely admit the PCA does offer a potential solution. |