Hi All,
I'm relatively new to PIC programming, and am having some difficulty writing some code to perform a specific task.
I have used a picaxe 28x1 to write some array code to a 24lc256 eeprom using i2c protocol. The code is in blocks of 255 hex values, which I want to use to output from the PIC into a DAC which then outputs a waveform (Direct Digital Synthesis). The code I'm struggling with is I want to be able to read the hex values sequentially from the eeprom, and output them in a similar fashion to the output pins of the PIC, then to repeat indefinately.
So what I need to know is:
Can this be done? and if so how?
Also,
Assuming the above is possible, How do I change the outputted waveform frequency?
Thanking you in advance of you answers.
I'm relatively new to PIC programming, and am having some difficulty writing some code to perform a specific task.
I have used a picaxe 28x1 to write some array code to a 24lc256 eeprom using i2c protocol. The code is in blocks of 255 hex values, which I want to use to output from the PIC into a DAC which then outputs a waveform (Direct Digital Synthesis). The code I'm struggling with is I want to be able to read the hex values sequentially from the eeprom, and output them in a similar fashion to the output pins of the PIC, then to repeat indefinately.
So what I need to know is:
Can this be done? and if so how?
Also,
Assuming the above is possible, How do I change the outputted waveform frequency?
Thanking you in advance of you answers.