vjcro
Newbie level 2
Hello,
I'm quite new in programming microcontrollers.
I was wondering, if I want to make a 'clock' on a GPIO, what would be it's maximum rate? I suppose - if I put, for example: RB1=1, then RB1=0 in a loop, the clock rate will be twice the time of the execution time of the used instruction. Am I right?
The thing I would like to do is to accomplish my own simple serial communication with a FPGA. The uC would generate the serial clock on a pin and the FPGA would send the bits on a data pin.
One more question regarding this: is there a boundary regarding the serial clock rate in that kind of communication?
I would appreciate any help!
Thank you in advance.
I'm quite new in programming microcontrollers.
I was wondering, if I want to make a 'clock' on a GPIO, what would be it's maximum rate? I suppose - if I put, for example: RB1=1, then RB1=0 in a loop, the clock rate will be twice the time of the execution time of the used instruction. Am I right?
The thing I would like to do is to accomplish my own simple serial communication with a FPGA. The uC would generate the serial clock on a pin and the FPGA would send the bits on a data pin.
One more question regarding this: is there a boundary regarding the serial clock rate in that kind of communication?
I would appreciate any help!
Thank you in advance.