Search found 16 matches
- 08 Jan 2021 17:39
- Forum: PIC32 PRO Compilers
- Topic: P32MZ2048EFH064 ADC
- Replies: 1
- Views: 1610
Re: P32MZ2048EFH064 ADC
Hi, I found s solution, it work for me. Here is it: ADC1_Init_Advanced(_ADC_REF_AVDD_AVSS); //_ADC_VREFH_EXTERNAL_VREFL_INTERNAL ADCCON3.VREFSEL0 = 1; ADCCON3.VREFSEL1 = 0; ADCCON3.VREFSEL2 = 0; // Configure ADCFLTR1 ADCFLTR1.AFEN = 0; ADCFLTR2.AFEN = 0; ADCFLTR3.AFEN = 0; ADCFLTR4.AFEN = 0; ADCFLTR...
- 08 Jan 2021 10:15
- Forum: PIC32 PRO Compilers
- Topic: P32MZ2048EFH064 ADC
- Replies: 1
- Views: 1610
P32MZ2048EFH064 ADC
Hi,
I use P32MZ2048EFH064 and would like to read analog input AN48 and AN49, but thay are on ADC3 and ADC4.
Do you have any example how I can do this?
Regards,
Mario Krumov
I use P32MZ2048EFH064 and would like to read analog input AN48 and AN49, but thay are on ADC3 and ADC4.
Do you have any example how I can do this?
Regards,
Mario Krumov
- 19 May 2020 17:56
- Forum: mikroC PRO for PIC32 General
- Topic: PIC32MZ2048EFH064 USB
- Replies: 5
- Views: 2348
PIC32MZ2048EFH064 USB
Hi Mikroe Team,
do you have working USB example for PIC32MZ2048EFH064 MCU.
I have trouble and no idea at now
Regards,
Mario
do you have working USB example for PIC32MZ2048EFH064 MCU.
I have trouble and no idea at now
Regards,
Mario
- 27 Nov 2017 22:33
- Forum: mikroC PRO for PIC32 General
- Topic: freeRTOS and PIC32
- Replies: 5
- Views: 2308
Re: freeRTOS and PIC32
Hi Lana, thanks again. Here is example of using interrupt. I use Timer 2 to generate interrupt. My question is - must I used portEND_SWITCHING_ISR at end of interrupt handler? Also must I used portISR_ENTRY() and portISR_EXIT()? I want to use interrupt inside OS. ************************************...
- 20 Nov 2017 20:31
- Forum: mikroC PRO for PIC32 General
- Topic: freeRTOS and PIC32
- Replies: 5
- Views: 2308
Re: freeRTOS and PIC32
Hi Lana, many thanks! It's works fine. I can use UART with interrupts without freeRTOS, but I'm not sure when I use UART with interrupt in freeRTOS, how to save context, how to restore context. I do't find in your port of freeRTOS portSAVE_CONTEXT and portRESTORE_CONTEXT. I hope you are understand w...
- 18 Nov 2017 19:17
- Forum: mikroC PRO for PIC32 General
- Topic: freeRTOS and PIC32
- Replies: 5
- Views: 2308
freeRTOS and PIC32
Hi all,
I'm new to using freeRTOS.
Can you provide example to using UART with interupt and freeRTOS and pic32mx
Regards
I'm new to using freeRTOS.
Can you provide example to using UART with interupt and freeRTOS and pic32mx
Regards
- 15 Nov 2017 20:42
- Forum: mikroC PRO for PIC32 General
- Topic: maybe bug
- Replies: 3
- Views: 1465
Re: maybe bug
Yes, its my mistake
All is ok.
Regards
All is ok.
Regards
- 14 Nov 2017 23:08
- Forum: mikroC PRO for PIC32 General
- Topic: maybe bug
- Replies: 3
- Views: 1465
maybe bug
Hi all, today I was looking freeRTOS examples in new version of mikroC PRO 32. I opened the blank example and compiled successfully. Example is for pic32mx795f512L I changed cpu - selected pic32mx570f512h - compiled successfully. But when I add some code - for example this lines: ANSELA = 0x0000; TR...
- 19 Jan 2017 11:51
- Forum: mikroC PRO for PIC32 General
- Topic: PIC32MX220F032D interupt help
- Replies: 3
- Views: 4771
Re: PIC32MX220F032D interupt help
Hi, I found а solution. I missed a few things: INTCON.MVEC = 1; - Interrupt Controller configured for multi vectored mode CNSTATC.CNSTATC7 = 0; - clear change notice This is working example: #include <stdint.h> uint32_t temp32 = 0; void main() { JTAGEN_bit = 0; TRISA = 0; LATA = 0; DisableInterrupts...
- 18 Jan 2017 18:40
- Forum: mikroC PRO for PIC32 General
- Topic: PIC32MX220F032D interupt help
- Replies: 3
- Views: 4771
PIC32MX220F032D interupt help
Hi, I try to run this code. When I use only INT0 or only Interupt On Change on PORTC, all works. But if I want to use both interupts, not working. Where I wrong? Also if I try to change ICS_SOFT to ICS_AUTO or to ICS_SRS - I get error - there is not shadow set. I very new with pic32. #include <stdin...
- 24 May 2016 09:15
- Forum: mikroC PRO for PIC General
- Topic: Logical Operators Question
- Replies: 2
- Views: 1344
Re: Logical Operators Question
ups, yes, thanks
- 23 May 2016 13:54
- Forum: mikroC PRO for PIC General
- Topic: Logical Operators Question
- Replies: 2
- Views: 1344
Logical Operators Question
Hi,
I have a "problem":
unsigned short __b1;
void main() {
__b1 = 0;
__b1 = __b1 || 0b00000111;
}
I thing __b1 must be
0b00000111,
but __b1 is
0b00000001
Where am I wrong?
mikroC PRO for PIC, version 6.6.3
I have a "problem":
unsigned short __b1;
void main() {
__b1 = 0;
__b1 = __b1 || 0b00000111;
}
I thing __b1 must be
0b00000111,
but __b1 is
0b00000001
Where am I wrong?
mikroC PRO for PIC, version 6.6.3
- 14 Aug 2014 20:21
- Forum: mikroBasic PRO for PIC General
- Topic: USB problem
- Replies: 2
- Views: 1311
Re: USB problem
OK, thanks !!
All working perfect.
All working perfect.
- 13 Aug 2014 20:55
- Forum: mikroBasic PRO for PIC General
- Topic: USB problem
- Replies: 2
- Views: 1311
USB problem
Hi all,
I have problem like this one:
http://www.mikroe.com/forum/viewtopic.p ... as#p213908
I using Micro Basic Pro for PIC 6.0.0
I already read more of forum threads, but can find how to fix problem.
I do not understand how to solve it ...
I have problem like this one:
http://www.mikroe.com/forum/viewtopic.p ... as#p213908
I using Micro Basic Pro for PIC 6.0.0
I already read more of forum threads, but can find how to fix problem.
I do not understand how to solve it ...
- 27 Jun 2011 12:35
- Forum: mikroBasic PRO for PIC General
- Topic: SPI Ethernet library
- Replies: 4
- Views: 1709
Re: SPI Ethernet library
hi Filip I using Microbasic Pro advanced Basic compiler 3.2 version and this example code: dim SPI_Ethernet_Rst as sbit at LATC0_bit ' for writing to output pin always use latch (PIC18 family) SPI_Ethernet_CS as sbit at LATC1_bit ' for writing to output pin always use latch (PIC18 family) SPI_Ethern...