Search found 55 matches

by Levi
18 Oct 2022 10:19
Forum: IDE
Topic: NECTO 2.2.0 Assembly debug and Listing View
Replies: 4
Views: 1179

Re: NECTO 2.2.0 Assembly debug and Listing View

Hi,
Necto File > Necto Preferences > General settings > Tool chains , have to check what file you need your compiler to generate
Regards,
Levi
by Levi
22 Jul 2022 08:23
Forum: IDE
Topic: open previous memake necto project with the new necto 2.0
Replies: 1
Views: 1053

open previous memake necto project with the new necto 2.0

Hi, I installed the new necto 2.0 on my pc , but I cannot open necto projects from previous versions for example memake project file,I see that you switch to Cmake and older extensions. Regarding Necto designer , there is still missing the screen orientation property and TFT custom board setup Best ...
by Levi
31 Jan 2022 11:22
Forum: mikroC PRO for AVR General
Topic: How to build a different time operation of the SoundPlay function ?
Replies: 14
Views: 2824

Re: How to build a different time operation of the SoundPlay function ?

Hi,

Code: Select all

 
 void delay_sound()       should be   void delay_sound(unsigned int  micros )

 
Regards,
Levi
by Levi
28 Jan 2022 17:00
Forum: mikroBasic PRO for PIC General
Topic: Man_Receive_Init() command cause halt in PIC18F4550 !
Replies: 2
Views: 939

Re: Man_Receive_Init() command cause halt in PIC18F4550 !

Hi, From Mikroe Library help file: Important : The Manchester receive routines are blocking calls (Man_Receive_Init and Man_Synchro). This means that MCU will wait until the task has been performed (e.g. byte is received, synchronization achieved, etc). Manchester code library implements time-based ...
by Levi
28 Jan 2022 16:55
Forum: mikroC PRO for AVR General
Topic: How to build a different time operation of the SoundPlay function ?
Replies: 14
Views: 2824

Re: How to build a different time operation of the SoundPlay function ?

Hi, Library from mikro are proprietary for now,I am afraid you will not get the source code . I made something similar to sound library some time ago but for pic microcontroler(not interrupt based no timer) , if it is for any help... //----------------------------------------------------------- void...
by Levi
28 Jan 2022 10:10
Forum: mikroC PRO for AVR General
Topic: How to build a different time operation of the SoundPlay function ?
Replies: 14
Views: 2824

Re: How to build a different time operation of the SoundPlay function ?

Hi,
Is there possible to set a pwm output in your project?
If yes , this could be used as 2Khz frequency and start stop it from your main code without affecting processor time.
Regards,
Levi
by Levi
27 Jan 2022 09:39
Forum: mikroC PRO for AVR General
Topic: How to build a different time operation of the SoundPlay function ?
Replies: 14
Views: 2824

Re: How to build a different time operation of the SoundPlay function ?

Hi, It is not a good practice to do a lot of work in interrupt routine , especially stop the interrupt inside interrupt. Use the main loop and make settings there.If interrupt is not affecting your main loop, you can let it run... and enable disable the toggle port inside interrupt routine(or outsid...
by Levi
26 Jan 2022 16:05
Forum: mikroC PRO for AVR General
Topic: How to build a different time operation of the SoundPlay function ?
Replies: 14
Views: 2824

Re: How to build a different time operation of the SoundPlay function ?

Hi, Regarding 2544Hz frequency , you should calculate the period with formula T=1/F so for 2544Hz you will have T=393.081us in this case the port pin should be '1' for T/2 and '0' for T/2. For a better accuracy of the T it is better to use Timer 1 or other timer ,play with the mikroe TimerCalculator...
by Levi
25 Jan 2022 10:38
Forum: mikroC PRO for AVR General
Topic: How to build a different time operation of the SoundPlay function ?
Replies: 14
Views: 2824

Re: How to build a different time operation of the SoundPlay function ?

Hi, In this case you have to build your own sound function, because I think the built in mikroe sound library will block your code as long as the sound duration time is set and your main loop will not be responsive. The easiest way to do it is by setting a timer interrupt routine and inside this fun...
by Levi
24 Jan 2022 16:39
Forum: mikroC PRO for AVR General
Topic: How to build a different time operation of the SoundPlay function ?
Replies: 14
Views: 2824

Re: How to build a different time operation of the SoundPlay function ?

Hi,

Use something like:

Code: Select all

unsigned int sound_duration=1000;//default 
.
.

Sound_Play (2000, sound_duration);//change variabile  sound_duration acording to your needs 
Regards,
Levi
by Levi
09 Dec 2021 09:21
Forum: mikroC PRO for AVR General
Topic: Software malfunction !!!
Replies: 17
Views: 3851

Re: Software malfunction !!!

Hi, In this case you have a hardware problem ,usually this type of problems if you have relays on board or inductive loads generate emc situations. Power supply of the microcontroller should be stable if there is no separate reference voltage for adc , pcb signal routing for adc should respect some ...
by Levi
07 Dec 2021 09:33
Forum: mikroC PRO for AVR General
Topic: Software malfunction !!!
Replies: 17
Views: 3851

Re: Software malfunction !!!

Hi, Try another thing just for testing ( I don't like delays in the program loop šŸ˜Š ) tray something like : case 0: if(flag_read_once) { flag_read_once=false; PORTC0_bit = ~PORTC0_bit; // ON-OFF output pin PC0 Atmega 32 delay_ms(1000);// put here one or two or more seconds delay } break; case 2: if(f...
by Levi
01 Dec 2021 11:26
Forum: mikroC PRO for AVR General
Topic: Software malfunction !!!
Replies: 17
Views: 3851

Re: Software malfunction !!!

Hi,
Try to connect a 10-100nf capacitor between adc input and ground.
Regards,
Levi
by Levi
30 Nov 2021 10:46
Forum: mikroC PRO for AVR General
Topic: Software malfunction !!!
Replies: 17
Views: 3851

Re: Software malfunction !!!

Hi,
Try to put de 100ms delay after adc = ADC_read(0);
Do yo have interrupts in your code?
Regards,
Levi

Go to advanced search