Search found 28 matches
- Thu May 18, 2017 12:21 pm
- Forum: Q&A
- Topic: Modify clock associated to ports
- Replies: 6
- Views: 8410
Re: Modify clock associated to ports
I am trying to change the frequency dynamically (my code is written in assembly). I therefore wrote a simple xc code and looked at the assembly of it since I can not find the assembly code of the function set_clock_div. I found the following which I wrote in my file: setc res[r10], 0x7 ldc r11, 0x0 ...
- Wed May 17, 2017 7:33 am
- Forum: Q&A
- Topic: Modify clock associated to ports
- Replies: 6
- Views: 8410
Re: Modify clock associated to ports
Great! :)
- Fri May 12, 2017 6:59 am
- Forum: Q&A
- Topic: Modify clock associated to ports
- Replies: 6
- Views: 8410
Re: Modify clock associated to ports
Thanks for the reply :)
- Tue May 09, 2017 9:47 am
- Forum: Q&A
- Topic: Modify clock associated to ports
- Replies: 6
- Views: 8410
Re: Modify clock associated to ports
Hey,
I would really appreciate an answer... :/
I would really appreciate an answer... :/
- Thu May 04, 2017 7:36 am
- Forum: Q&A
- Topic: Modify clock associated to ports
- Replies: 6
- Views: 8410
Modify clock associated to ports
Hi all, Here the code I am currently using: stop_clock(p.cb); set_clock_div(p.cb, CAN_CLOCK_DIVIDE); set_port_clock(po, p.cb); start_clock(p.cb); I'd like to change the frequency of the clock associated to ports during execution of my code. Thus, I have a few question regarding the set_clock_div fun...
- Wed Mar 22, 2017 4:37 pm
- Forum: Q&A
- Topic: Communication between two tasks
- Replies: 15
- Views: 14900
Re: Communication between two tasks
Thanks, that was the problem.
But why should I send the pointer back since I'm not interested in the content? How will task2 know if it can send the next pointer or it should receive the previously send one?
But why should I send the pointer back since I'm not interested in the content? How will task2 know if it can send the next pointer or it should receive the previously send one?
- Wed Mar 22, 2017 3:44 pm
- Forum: Q&A
- Topic: Communication between two tasks
- Replies: 15
- Views: 14900
- Wed Mar 22, 2017 2:46 pm
- Forum: Q&A
- Topic: Communication between two tasks
- Replies: 15
- Views: 14900
Re: Communication between two tasks
A quick example: #include <print.h> typedef struct my_struct { unsigned id1; unsigned id2; unsigned id3; unsigned id4; char data[8]; } my_struct; void print_msg(my_struct f, char prepend[]){ printstr(prepend); printhex(f.id3); printstr("\t"); if(f.id2) printstr(" : Ext\t"); else ...
- Wed Mar 22, 2017 2:20 pm
- Forum: Q&A
- Topic: Communication between two tasks
- Replies: 15
- Views: 14900
Re: Communication between two tasks
Two more questions:
If I use a decoupling core, should it communicate with the other two cores via channels or interfaces?
If I use the streaming channels, do you know where I can find an example of a structure passed via pointer on a channel? I'm having some trouble doing it...
If I use a decoupling core, should it communicate with the other two cores via channels or interfaces?
If I use the streaming channels, do you know where I can find an example of a structure passed via pointer on a channel? I'm having some trouble doing it...
- Wed Mar 22, 2017 9:38 am
- Forum: Q&A
- Topic: Communication between two tasks
- Replies: 15
- Views: 14900
Re: Communication between two tasks
They are on the same tile.
So you suggest sending a pointer through a streaming channel?
So you suggest sending a pointer through a streaming channel?