Author |
Message |
Topic: how to code 25ns delay in ccs |
syamin0712
Replies: 4
Views: 8481
|
Forum: General CCS C Discussion Posted: Sat Jan 30, 2016 8:33 pm Subject: how to code 25ns delay in ccs |
Hi,
Does anybody know how to code the delay of 25ns each in ccs? So that, I can get the 20MHz for 1 cycle.
I use the crystal 10MHz and use HSPLL so that I can get 40MHz clock.
I have tried to use ... |
Topic: 2MHz sine waveform using AD9833 and PIC18F4580 |
syamin0712
Replies: 28
Views: 51282
|
Forum: General CCS C Discussion Posted: Wed Aug 26, 2015 4:02 pm Subject: 2MHz sine waveform using AD9833 and PIC18F4580 |
Ok. Thank you very much for the advice and the help.
Really appreciate it.
I will look detail on it |
Topic: 2MHz sine waveform using AD9833 and PIC18F4580 |
syamin0712
Replies: 28
Views: 51282
|
Forum: General CCS C Discussion Posted: Wed Aug 26, 2015 7:49 am Subject: 2MHz sine waveform using AD9833 and PIC18F4580 |
20mhz and plug boards don't mix
Do you mean i have to use two 20 MHz separately? One at osc of PIC and another one at MCLK of AD9833? |
Topic: 2MHz sine waveform using AD9833 and PIC18F4580 |
syamin0712
Replies: 28
Views: 51282
|
Forum: General CCS C Discussion Posted: Wed Aug 26, 2015 3:46 am Subject: 2MHz sine waveform using AD9833 and PIC18F4580 |
Try the experiment of turning the scope gain up a little, and touching the probe to different points on the same 'ground' signal round your board. Be prepared for just how much signal there may be at ... |
Topic: 2MHz sine waveform using AD9833 and PIC18F4580 |
syamin0712
Replies: 28
Views: 51282
|
Forum: General CCS C Discussion Posted: Wed Aug 26, 2015 1:08 am Subject: 2MHz sine waveform using AD9833 and PIC18F4580 |
I said the ground of the chip under test, not the circuit
My chip, master and circuit share the same ground. So. Thats why i pin the probe only at one point coz the ground is same.
Point is th ... |
Topic: 2MHz sine waveform using AD9833 and PIC18F4580 |
syamin0712
Replies: 28
Views: 51282
|
Forum: General CCS C Discussion Posted: Tue Aug 25, 2015 11:41 pm Subject: 2MHz sine waveform using AD9833 and PIC18F4580 |
Hi Ttelmah,
Every oscilloscope probe has to be compensated to match the scope it is being used on. There is a setup procedure on the scope, and a test source built into the scope. You attach the pr ... |
Topic: 2MHz sine waveform using AD9833 and PIC18F4580 |
syamin0712
Replies: 28
Views: 51282
|
Forum: General CCS C Discussion Posted: Tue Aug 25, 2015 9:11 pm Subject: 2MHz sine waveform using AD9833 and PIC18F4580 |
i'd feel a lot more certain of your problem if you showed a PHOTO with the details of your actual hardware under test.
showing how you connect your scope lead too ideally.
I attached the link f ... |
Topic: 2MHz sine waveform using AD9833 and PIC18F4580 |
syamin0712
Replies: 28
Views: 51282
|
Forum: General CCS C Discussion Posted: Tue Aug 25, 2015 12:43 pm Subject: 2MHz sine waveform using AD9833 and PIC18F4580 |
Firstly, does it mean the signal generally is correct by using MODE 2? I am right?
amplifier seems to be showing very significant overshoot, that is making it worse....
The result i got was th ... |
Topic: 2MHz sine waveform using AD9833 and PIC18F4580 |
syamin0712
Replies: 28
Views: 51282
|
Forum: General CCS C Discussion Posted: Tue Aug 25, 2015 4:03 am Subject: 2MHz sine waveform using AD9833 and PIC18F4580 |
or it is actually MODE 2?
coz when i changed into MODE 2 the frequency is look like 2 MHz but content of ripple and the Vp-p is still less than 1Vp-p.
http://obrazki.elektroda.pl/5027052000_1440 ... |
Topic: 2MHz sine waveform using AD9833 and PIC18F4580 |
syamin0712
Replies: 28
Views: 51282
|
Forum: General CCS C Discussion Posted: Tue Aug 25, 2015 1:52 am Subject: 2MHz sine waveform using AD9833 and PIC18F4580 |
I think the peak to peak amplitude will depends on the frequency that we want. I have referred the data sheet page 18,Figure 26. The formula of DAC OUTPUT I think will give the final amplitude of Vout ... |
Topic: 2MHz sine waveform using AD9833 and PIC18F4580 |
syamin0712
Replies: 28
Views: 51282
|
Forum: General CCS C Discussion Posted: Tue Aug 25, 2015 1:03 am Subject: 2MHz sine waveform using AD9833 and PIC18F4580 |
I have changed into mode 1 but what i got was still not a desired sinewaveform even the shape changes.
http://obrazki.elektroda.pl/1147179900_1440485444.png
Is there any coding that I have to do ... |
Topic: 2MHz sine waveform using AD9833 and PIC18F4580 |
syamin0712
Replies: 28
Views: 51282
|
Forum: General CCS C Discussion Posted: Mon Aug 24, 2015 10:43 pm Subject: 2MHz sine waveform using AD9833 and PIC18F4580 |
Hi all,
I think i have made a wrong selection the pin between AD9833 and PIC18F4580. After I referred the microchip forum, the correct selection is as follow:
AD9833 PIC18F4580
FSY ... |
Topic: 2MHz sine waveform using AD9833 and PIC18F4580 |
syamin0712
Replies: 28
Views: 51282
|
Forum: General CCS C Discussion Posted: Mon Aug 24, 2015 1:06 pm Subject: 2MHz sine waveform using AD9833 and PIC18F4580 |
Hi all,
Actually i don't know what is the correct way of setup HSPLL in ccs...im just try and error. TQ Ttelmah...i'll try to edit my code.
Yup,actually at first i think the ad9833 clock is same a ... |
Topic: 2MHz sine waveform using AD9833 and PIC18F4580 |
syamin0712
Replies: 28
Views: 51282
|
Forum: General CCS C Discussion Posted: Sun Aug 23, 2015 9:00 pm Subject: 2MHz sine waveform using AD9833 and PIC18F4580 |
Hi everyone,
I need some help for those who have experience in generating sine waveforms using AD9833 and PIC18F4580.
This is my first experience using SPI to code the sine waveform from PIC18F458 ... |
|