• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
  • slider image 488
  • slider image 491
:::

論壇索引


Board index » All Posts (jamson)




Re: CAN system's problem with 3 nodes
#21
初級會員
初級會員


No,node3 does nothing but waits to receive the message,I think busy is unreasonable .

發表於: 2005/3/18 13:16
頂部


AD转换问题
#22
初級會員
初級會員


我通过两个可调电位器将0~5V的电压分别接到AN0和AN5引脚上,为什么在程序里分别启动AD转换时,两组结果相互影响?

發表於: 2005/3/18 0:06
頂部


CAN system's problem with 3 nodes
#23
初級會員
初級會員


I developed a CAN system with 3 nodes(node1,node2,node3),using 18F458 and Philips PCA82C250,the Oscillator is 10M,the bus rate is about 80K,the node2 send out message with ID 0x218,I hope both the node1 and node3 can receive the message in time,however only the node1 does this,the node3 can only receive the message from time to time,the delay is so obvious.I set the 3 nodes’ message mask and filter as follows:

Node1:

………
CANSetOperationMode(CAN_OP_MODE_CONFIG) ;

CANSetMask(CAN_MASK_B1, 0x07ff, CAN_CONFIG_STD_MSG ) ; CANSetMask(CAN_MASK_B2, 0x07ff, CAN_CONFIG_STD_MSG ) ;

CANSetFilter(CAN_FILTER_B1_F1, 0x0220 , CAN_CONFIG_STD_MSG) ;
CANSetFilter(CAN_FILTER_B1_F2, 0x0218 , CAN_CONFIG_STD_MSG) ;
CANSetFilter(CAN_FILTER_B2_F1, 0x0210 , CAN_CONFIG_STD_MSG) ;
CANSetFilter(CAN_FILTER_B2_F2, 0x0000 , CAN_CONFIG_STD_MSG) ;
CANSetFilter(CAN_FILTER_B2_F3, 0x0000 , CAN_CONFIG_STD_MSG) ;
CANSetFilter(CAN_FILTER_B2_F4, 0x0000 , CAN_CONFIG_STD_MSG) ;

CANSetOperationMode(CAN_OP_MODE_NORMAL) ;
………
While(1)
{
CANReceiveMessage(….);
}
……………………….

Node2:

………
CANSetOperationMode(CAN_OP_MODE_CONFIG) ;

CANSetMask(CAN_MASK_B1, 0x07ff, CAN_CONFIG_STD_MSG ) ; CANSetMask(CAN_MASK_B2, 0x07ff, CAN_CONFIG_STD_MSG ) ;

CANSetFilter(CAN_FILTER_B1_F1, 0x0018 , CAN_CONFIG_STD_MSG) ;
CANSetFilter(CAN_FILTER_B1_F2, 0x0220 , CAN_CONFIG_STD_MSG) ;
CANSetFilter(CAN_FILTER_B2_F1, 0x0000 , CAN_CONFIG_STD_MSG) ;
CANSetFilter(CAN_FILTER_B2_F2, 0x0000 , CAN_CONFIG_STD_MSG) ;
CANSetFilter(CAN_FILTER_B2_F3, 0x0000 , CAN_CONFIG_STD_MSG) ;
CANSetFilter(CAN_FILTER_B2_F4, 0x0000 , CAN_CONFIG_STD_MSG) ;

CANSetOperationMode(CAN_OP_MODE_NORMAL) ;
………
While(1)
{
…………..
CANSendMessage( 0x218,TX_Data_Buf1,TX_Data_Len1,
CAN_TX_PRIORITY_0 &
CAN_TX_STD_FRAME &
CAN_TX_RTR_FRAME ) ;
…………..
}
……………………….

Node3:

………
CANSetOperationMode(CAN_OP_MODE_CONFIG) ;

CANSetMask(CAN_MASK_B1, 0x07ff, CAN_CONFIG_STD_MSG ) ; CANSetMask(CAN_MASK_B2, 0x07ff, CAN_CONFIG_STD_MSG ) ;

CANSetFilter(CAN_FILTER_B1_F1, 0x0218 , CAN_CONFIG_STD_MSG) ;
CANSetFilter(CAN_FILTER_B1_F2, 0x0020 , CAN_CONFIG_STD_MSG) ;
CANSetFilter(CAN_FILTER_B2_F1, 0x0000 , CAN_CONFIG_STD_MSG) ;
CANSetFilter(CAN_FILTER_B2_F2, 0x0000 , CAN_CONFIG_STD_MSG) ;
CANSetFilter(CAN_FILTER_B2_F3, 0x0000 , CAN_CONFIG_STD_MSG) ;
CANSetFilter(CAN_FILTER_B2_F4, 0x0000 , CAN_CONFIG_STD_MSG) ;

CANSetOperationMode(CAN_OP_MODE_NORMAL) ;
………
While(1)
{
CANReceiveMessage(….);
}
……………………….


I donnot know where the problem is.

發表於: 2005/3/17 23:52
頂部


Re: problem with icd2 and pic18f6680
#24
初級會員
初級會員


我现在将Avdd和Avss分别接5V和地,但测量到5V与地间的电阻只有30~40欧姆,这是怎么回事呢?Avdd与Avss悬空时,它们间的电阻有700~800欧姆,是不是CPU被烧坏了?

發表於: 2004/11/22 20:11
頂部


problem with icd2 and pic18f6680
#25
初級會員
初級會員


I want to use ICD2 to debug my target board with pic18f6680,ICD2 can identify my board's cpu as PIC18F6680,and I wrote a simple program just to light some leds,and compiled successfully,but when I want to program the board by ICD2,output window display the following messages:
..........
Programming Target...
...Programming Program Memory (0x0 - 0xD1F)
...Loading DebugExecutive
...Programming DebugExecutive
...Programming Debug Vector
...Programming RSBUG
Verifying...
...Program Memory
ICD0161: Verify failed (MemType = Program, Address = 0x0, Expected Val = 0xEF0C, Val Read = 0xFFFF)
ICD0275: Programming failed.
MPLAB ICD 2 Ready

I don't know where the problem is,the target board is powered by itself.

發表於: 2004/11/3 13:20
頂部


Re: ICD2电源引脚
#26
初級會員
初級會員


难道没有熟悉ICD2的高手吗?我现在打算用ICD2直接调试自己开发的板子,但是不知道如何处置ICD2输出的6PIN电话线中的PIN2和PIN3,希望能得到高手的指教,谢谢!

發表於: 2004/9/17 23:38
頂部


Re: ICD2电源引脚
#27
初級會員
初級會員


我使用6PIN电话线连接ICD2和目标板,PIN2和PIN3的作用到底是什么呢?如果ICD2和目标板都带有外部电源,是否PIN2和PIN3就不起作用?希望能得到回答。


發表於: 2004/9/16 8:43
頂部


ICD2电源引脚
#28
初級會員
初級會員


ICD2输出的六根引脚中,引脚2(VDD),引脚3(GND)的作用是什么?是为了从试验板上给ICD2提供电源呢还是通过ICD2给试验板提供电源?

發表於: 2004/9/15 12:45
頂部


18f458 ccp1
#29
初級會員
初級會員


I use RC2 to capture pulse input(periods is about 12ms,high level is about 5V),I set the timer1 as timer and interrupt every 120ms,but why is the CCP1's value always 0?

發表於: 2004/9/1 12:51
頂部


Re: ex738
#30
初級會員
初級會員


Thanks.I see the display in HyperTerm at 16MHz.

發表於: 2004/8/30 14:33
頂部



« 1 2 (3) 4 »



:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------