Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
There are a lot of examples of how to use PIC18Fxxx PWM modules including (found by a quick Googe search) https://ww1.microchip.com/downloads/en/Appnotes/Getting-Started-with-PWM-Using-CCP-on-PIC18-DS90003270A.pdf.
PWMs are not that hard to use 'bare metal'. If the MikroC library doesn't cover...
Just on that 'Delay()' function - I would bet dollars to doughnuts that it is not doing anything.
Even with optimisation turned off, any half decent compiler will see that nCount is only being used in the 'while' loop which is otherwise empty. Therefore the functionally equivalent statement for...
According the the MikroC web site that MCU is supported.
My guess would be that the compiler has not been installed correctly to locate the required include files.
(I don't use that compiler - I use the XC8 from Microchip where you just include <xc.h> and the IDE tells the compiler which MCU you...
Also which package are you using?
In 'nRF_Init()' under the 'SDI1 Set' comment, you manipulate RB4 but the comment refers to RC4. PortB is only available on the 20-pin package so I assume you are using that. If not then you need to both correct the comment (which you should do anyway) and use...
My suspicion is that the outputs of the 74192 are not entirely 'clean' due to propagation delays within the chip. If the outputs are 0x0011 (i.e. decimal 3) and the chip increments, the 3rd bit may go high (i.e. have an output of 0b0111) for a fraction of a second before the lower bits go low to...
I know this is a different MCU (it's from the dsPIC33EP512MU810 datasheet) but this is typical of what I've seen elsewhere.
The idea is to hold the \MCLR\ pin low while the capacitor is charging during power-on to allow the power supply to stabilise.
It is also noted (elsewhere) that this...
Again, that is not what I asked for. Please re-read my previous posts carefully.
That looks like MCC generated code (almost all of it is unnecessary but that is MCC all over) but whether it is actually doing anything relies entirely on how you have set up the FOSCSEL config register that will be...
No - that is the initialisation of the SCCP.
What I asked for is the CONFIG settings - they are often #pragma lines at the top of the main code file. It may well be that you have not configured the oscillator to run at all but we can't tell. Also the code for the main() function woudl help in...
Please show the CONFIG items and the rest of the code.
Is the ISR being called?
How is 'result' declared?
How are you determining that "...output is[sic] not occurred"?
Susan
This is quite another question altogether. Perhaps looking at the CodeBlocks documentation that I linked to above and section 1.13.8 might give you some idea.
However I think that running the emulator will only be a small part of what needs to be done. I get the feeling that this just emulates...
As always, addressing for I2C is a bit tricky. The data sheet for the MPU-6050(I used https://core-electronics.com.au/attachments/localcontent/MPU-6050_DataSheet_V34_14872bbfb20.pdf) does show the address as '0x110100X' (where X is controlled by the 'AD0' pin) (Section 9.2).
That makes it 0x68...
Perhaps someone here who has used Codeblocks can answer - I have not heard of it before now.
Having said that, I did a Google search and came up with the user manual (in my case in English) at https://www.codeblocks.org/docs/manual_codeblocks_en.pdf.
Section 4.2.3 (which I found by looking at...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.